Exemplo n.º 1
0
        // Save the task state so that settings are remembered
        private string WriteXML()
        {
            TopNSettings settings = new TopNSettings();

            settings.CategoryColumn = CategoryColumn;
            settings.IncludeChart   = IncludeChart;
            settings.MeasureColumn  = MeasureColumn;
            settings.N             = N;
            settings.ReportColumn  = ReportColumn;
            settings.Statistic     = Statistic;
            settings.Title         = Title;
            settings.Footnote      = Footnote;
            settings.MeasureFormat = MeasureFormat;

            using (StringWriter sw = new StringWriter())
            {
                XmlSerializer s = new XmlSerializer(typeof(TopNSettings));
                s.Serialize(sw, settings);
                return(sw.ToString());
            }
        }
Exemplo n.º 2
0
        // Save the task state so that settings are remembered
        private string WriteXML()
        {
            TopNSettings settings = new TopNSettings();
            settings.CategoryColumn = CategoryColumn;
            settings.IncludeChart = IncludeChart;
            settings.MeasureColumn = MeasureColumn;
            settings.N = N;
            settings.ReportColumn = ReportColumn;
            settings.Statistic = Statistic;
            settings.Title = Title;
            settings.Footnote = Footnote;
            settings.MeasureFormat = MeasureFormat;

            using (StringWriter sw = new StringWriter())
            {
                XmlSerializer s = new XmlSerializer(typeof(TopNSettings));
                s.Serialize(sw, settings);
                return sw.ToString();
            }
        }