コード例 #1
0
ファイル: AddUserVM.cs プロジェクト: dmilosevic/RVA_Projekat
        public AddUserVM(Window view, HomeVM home)
        {
            this.View   = view;
            this.HomeVM = home;

            addUserCmd = new AddUserCmd(this);
        }
コード例 #2
0
        public AddDeviceVM(Window view, HomeVM home)
        {
            homeVM    = home;
            this.view = view;
            Subs      = homeVM.Substations;

            addDeviceCmd = new AddDevice(this);
        }
コード例 #3
0
        public AddMeasurementVM(Window view, HomeVM home)
        {
            homeVM       = home;
            this.view    = view;
            Devs         = DataProxy.Instance.Proxy.GetAllDevices();
            SelectedDate = DateTime.Today;

            addMeasurementCmd = new AddMeasurement(this);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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,
            };
        }
コード例 #6
0
 public AddSubstationVM(Window view, HomeVM home)
 {
     this.view        = view;
     this.homeVM      = home;
     addSubstationCmd = new AddSubstation(this);
 }