public SettingGraphsWindow(GraphSetting graphSetting) { InitializeComponent(); this.graphSettingReturn = graphSetting; this.graphSetting = graphSetting.Clone(); graphParamsSet.Visibility = Visibility.Collapsed; this.Height = 275; this.Title = "Настройки для графиков"; InitGraphSets(); }
public GraphSetting Clone() { GraphSetting gs = new GraphSetting(); gs.LegendVis = this.LegendVis; gs.LegendSizeFont = this.LegendSizeFont; gs.LineWidth = this.LineWidth; gs.AxisSizeFont = this.AxisSizeFont; gs.LegendPos = this.LegendPos; return(gs); }
public SettingGraphsWindow(SparkControls.IndiGraph indi) { this.indi = indi; InitializeComponent(); graphSetting = indi.GraphSetting.Clone(); paramsList = new ObservableCollection <DataParamGraphSetting>(); foreach (DataParam dataParam in indi.DataParams) { paramsList.Add(new DataParamGraphSetting { ID = dataParam.ID, Title = dataParam.Title, ColorLine = dataParam.ColorLine, IsRight = dataParam.IsRight }); } graphParamsSet.ItemsSource = paramsList; InitGraphSets(); }
public SettingGraphsWindow(GraphSetting graphSetting, ObservableCollection <CheckedParam> selectedParams) { InitializeComponent(); this.selectedParams = selectedParams; this.graphSettingReturn = graphSetting; this.graphSetting = graphSetting.Clone(); paramsList = new ObservableCollection <DataParamGraphSetting>(); foreach (CheckedParam selectedParam in selectedParams) { paramsList.Add(new DataParamGraphSetting { Title = selectedParam.Title, ColorLine = selectedParam.ColorLine, IsRight = selectedParam.IsRight, MinY = selectedParam.MinY, MaxY = selectedParam.MaxY }); } graphParamsSet.ItemsSource = paramsList; InitGraphSets(); }