Exemplo n.º 1
0
        private bool EditSelectedSeries()
        {
            IList <ILineGraphSeries> selectedSeries = new List <ILineGraphSeries>();

            foreach (ListViewItem seriesItem in lvFieldList.SelectedItems)
            {
                selectedSeries.Add((ILineGraphSeries)seriesItem.Tag);
            }

            SeriesEditor dialog = new SeriesEditor()
            {
                Series = selectedSeries
            };

            DialogResult seriesEditorResult = dialog.ShowDialog(this);

            bool changesMade = (seriesEditorResult == DialogResult.OK);

            if (changesMade)
            {
                foreach (ILineGraphSeries series in dialog.Series)
                {
                    Model.UpdateSeries(series);
                }
            }

            return(changesMade);
        }
Exemplo n.º 2
0
        private bool EditSeries(IList <ILineGraphSeries> seriesList)
        {
            SeriesEditor dialog = new SeriesEditor()
            {
                Series = seriesList
            };

            DialogResult seriesEditorResult = dialog.ShowDialog(this);

            bool changesMade = (seriesEditorResult == DialogResult.OK);

            return(changesMade);
        }