コード例 #1
0
        public AddInspectorViewModel(LoginViewModel providerItem, InspectorViewModel Inspectors)
        {
            this.dataServer = providerItem.dataServer;

            Inspector = Inspectors;

            AddInspectorCommand = new RelayCommand(AddInspector);
        }
コード例 #2
0
        public EditInspectorViewModel(LoginViewModel login, InspectorViewModel inspectorViewModel)
        {
            _dataServer = login.dataServer;
            InspectorVM = inspectorViewModel;

            EditInspectorCommand = new RelayCommand(EditInspector);

            _id         = InspectorVM.SelectedInspector.Id;
            this.Name   = InspectorVM.SelectedInspector.Naam;
            LastName    = InspectorVM.SelectedInspector.Achternaam;
            DateOfBirth = InspectorVM.SelectedInspector.GeboorteDatum;
            Zipcode     = InspectorVM.SelectedInspector.Postcode;
            PhoneNumber = InspectorVM.SelectedInspector.Telefoonnummer;
            Email       = InspectorVM.SelectedInspector.Email;
            Password    = InspectorVM.SelectedInspector.Wachtwoord;
            HouseNumber = InspectorVM.SelectedInspector.Huisnummer;
        }