public GetZoomViewModel(ZoomItemViewModel _zoomItemViewModel) { // Gets an instance of the ViewModels this.zoomItemViewModel = _zoomItemViewModel; this.mainViewModel = MainViewModel.GetInstance(); // Gets an instance of the services class this.apiService = new ApiService(); this.dialogService = new DialogService(); this.navigationService = new NavigationService(); // Load values in the control this.LoadValuesControls(0, null); // Find data of the Zoom FindData(); }
public EditZoomViewModel(ZoomItemViewModel _zoomItemViewModel) { // Get an instance of the ZoomItemViewModel this.zoomItemViewModel = _zoomItemViewModel; // Define control format this.SetInitialize(); this.SetStatusControl(true, false, 0); // Gets an instances of the services class this.apiservices = new ApiService(); this.dialogService = new DialogService(); this.navigationService = new NavigationService(); // Gets an instance of the MainViewModel this.mainViewModel = MainViewModel.GetInstance(); // Gets an instance of the CantvViewModel this.cantvViewModel = CantvViewModel.GetInstance(); // Load value in the controls this.Tracking = this.zoomItemViewModel.Tracking; }