Пример #1
0
 public SettingGraphsWindow(GraphSetting graphSetting)
 {
     InitializeComponent();
     this.graphSettingReturn   = graphSetting;
     this.graphSetting         = graphSetting.Clone();
     graphParamsSet.Visibility = Visibility.Collapsed;
     this.Height = 275;
     this.Title  = "Настройки для графиков";
     InitGraphSets();
 }
Пример #2
0
 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();
 }