コード例 #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 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);
        }
コード例 #3
0
 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();
 }
コード例 #4
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();
 }