public ControlClientViewModel() { this._currentModel = ModelType.None; this._currentChartOption = this.GetDefaultChartOption(); this.DeleteMeasTaskCommand = new WpfCommand(this.OnDeleteMeasTaskCommand); this.RunMeasTaskCommand = new WpfCommand(this.OnRunMeasTaskCommand); this.StopMeasTaskCommand = new WpfCommand(this.OnStopMeasTaskCommand); this.RefreshShortTasksCommand = new WpfCommand(this.OnRefreshShortTasksCommand); this.RefreshShortSensorsCommand = new WpfCommand(this.OnRefreshShortSensorsCommand); this.ShowHideMeasTaskDetailCommand = new WpfCommand(this.OnShowHideMeasTaskDetailCommand); this.ShowHideMeasResultsDetailCommand = new WpfCommand(this.OnShowHideMeasResultsDetailCommand); this._shortMeasTasks = new ShortMeasTaskDataAdatper(); this._shortMeasResults = new ShortMeasurementResultsDataAdatper(); this._shortSensors = new ShortSensorDataAdatper(); this._measTaskDetailStations = new MeasTaskDetailStationDataAdapter(); this._resultsMeasurementsStations = new ResultsMeasurementsStationDataAdapter(); this._levelMeasurements = new LevelMeasurementsCarDataAdapter(); this.ReloadShortMeasTasks(); this.ReloadShorSensors(); }
public LineChart() { InitializeComponent(); this._option = LineChart.GetDefaultChartOption(); this._gridStyle = new ChartGridStyle { BottomOffset = 15, LeftOffset = 20, RightOffset = 10, InnerLineColor = Brushes.Gray, LineColor = Brushes.Gray, InnerLinePattern = GridlinePatternEnum.Dot, LinePattern = GridlinePatternEnum.DashDot, IsXGrid = true, IsXInnerGrid = true, IsYGrid = true, IsYInnerGrid = true, InnerLineThickness = 1, LineThickness = 1 }; this._lineStyle = new ChartLineStyle { Color = Brushes.Black, Thickness = 1, Pattern = LinePatternEnum.Solid }; this._columnsStyle = new ChartColumnsStyle { FillColor = Brushes.RoyalBlue, StrokeColor = Brushes.DarkBlue, Thickness = 1, Pattern = LinePatternEnum.Solid }; }