public AddUserVM(Window view, HomeVM home) { this.View = view; this.HomeVM = home; addUserCmd = new AddUserCmd(this); }
public AddDeviceVM(Window view, HomeVM home) { homeVM = home; this.view = view; Subs = homeVM.Substations; addDeviceCmd = new AddDevice(this); }
public AddMeasurementVM(Window view, HomeVM home) { homeVM = home; this.view = view; Devs = DataProxy.Instance.Proxy.GetAllDevices(); SelectedDate = DateTime.Today; addMeasurementCmd = new AddMeasurement(this); }
public EditUserDataVM(Window view, HomeVM home) { this.View = view; this.homeVM = home; Username = homeVM.CurrentUser.Username; Firstname = homeVM.CurrentUser.FirstName; Lastname = home.CurrentUser.LastName; editUserCmd = new EditUserDataCmd(this, view); }
public EditSubstationVM(Window view, HomeVM home) { editSubstationCmd = new EditSubstation(this); HomeVM = home; this.EditView = view; Id = HomeVM.selectedSubstation.Id; Name = HomeVM.selectedSubstation.Name; Location = HomeVM.selectedSubstation.Location; oldSubstation = new Substation() { Id = this.Id, Name = this.Name, Location = this.Location, }; }
public AddSubstationVM(Window view, HomeVM home) { this.view = view; this.homeVM = home; addSubstationCmd = new AddSubstation(this); }