/// <summary> /// Initializes a new instance of the <see cref="GridVM"/> class. /// </summary> /// <param name="gridVMContainer"> The container of the saved grid. </param> public GridVM(GridVMContainer gridVMContainer) { this.xAxeStart = new ObservableCollection <GridLines>(); this.yAxeStart = new ObservableCollection <GridLines>(); this.xAxeGrid = new ObservableCollection <GridLines>(); this.yAxeGrid = new ObservableCollection <GridLines>(); this.colorXAxis = gridVMContainer.ColorXAxis; this.colorYAxis = gridVMContainer.ColorYAxis; this.colorXAxisGrid = gridVMContainer.ColorXAxisGrid; this.colorYAxisGrid = gridVMContainer.ColorYAxisGrid; this.gridXInterval = gridVMContainer.GridXInterval; this.gridYInterval = gridVMContainer.GridYInterval; this.gridXOpacity = gridVMContainer.GridXOpacity; this.gridYOpacity = gridVMContainer.GridYOpacity; this.xOpacity = gridVMContainer.XOpacity; this.yOpacity = gridVMContainer.YOpacity; this.smallestXValue = gridVMContainer.SmallestXValue; this.smallestYValue = gridVMContainer.SmallestYValue; this.bigestXValue = gridVMContainer.BigestXValue; this.bigestYValue = gridVMContainer.BigestYValue; this.DrawXAxis(); this.DrawYAxis(); this.DrawXAxisGrid(); this.DrawYAxisGrid(); }
/// <summary> /// Initializes a new instance of the <see cref="MasterVMContainer"/> class. /// </summary> /// <param name="gridVM"> The grid of the view. </param> /// <param name="functionListVM"> The functions of the view. </param> public MasterVMContainer(GridVM gridVM, FunctionListVM functionListVM) { this.GridVMContainer = new GridVMContainer(gridVM); this.FunctionalListVMContainer = new FunctionalListVMContainer(functionListVM); }