Beispiel #1
0
        public EditIvssViewModel(IvssItemViewModel _ivssItemViewModel)
        {
            //  Gets an instance of the class
            this.ivssItemViewModel = _ivssItemViewModel;
            this.mainViewModel     = MainViewModel.GetInstance();
            this.cantvViewModel    = CantvViewModel.GetInstance();

            //  Gets an new instance the service class
            this.apiService        = new ApiService();
            this.dialogService     = new DialogService();
            this.navigationService = new NavigationService();

            //  Invoke the method Preload
            this.LoadValues();
        }
Beispiel #2
0
        public GetIvssViewModel(IvssItemViewModel _ivssItemViewModel)
        {
            //  Load value of the IvssItemViewModel
            this.ivssItemViewModel = _ivssItemViewModel;

            //  Gets an instance of the services class
            this.apiService        = new ApiService();
            this.dialogService     = new DialogService();
            this.navigationService = new NavigationService();

            //  Sets status of controls
            this.SetStatusControl(true, false, "Green", 0);

            //  Initialize the values of the controls
            this.isValid = true;
            this.LoadValuesControls(0, null);

            //  Get data of the IVSS
            FindData();
        }