Example #1
0
        public void Add()
        {
            ClientEditVM vm = new ClientEditVM();

            vm.AddMode();
            vm.ShowDialog();

            if (vm.IsComplete)
            {
                _contacts.Add(vm.Data);
                OnPropertyChanged("Contacts");
            }
        }
Example #2
0
        public void Edit()
        {
            ClientEditVM vm = new ClientEditVM();

            vm.Data = SelectedContact;
            vm.EditMode();

            vm.ShowDialog();

            if (vm.IsComplete)
            {
                OnPropertyChanged("Contacts");
            }
        }
Example #3
0
        public void Delete()
        {
            ClientEditVM vm = new ClientEditVM();

            vm.Data = SelectedContact;
            vm.DeleteMode();

            vm.ShowDialog();

            if (vm.IsComplete)
            {
                _contacts.Remove(SelectedContact);
                SelectedContact = null;
                OnPropertyChanged("Contacts");
            }
        }
        public void Edit()
        {
            ClientEditVM vm = new ClientEditVM();
            vm.Data = SelectedContact;
            vm.EditMode();

            vm.ShowDialog();

            if(vm.IsComplete)
            {
                OnPropertyChanged("Contacts");
            }
        }
        public void Delete()
        {
            ClientEditVM vm = new ClientEditVM();
            vm.Data = SelectedContact;
            vm.DeleteMode();

            vm.ShowDialog();

            if(vm.IsComplete)
            {
                _contacts.Remove(SelectedContact);
                SelectedContact = null;
                OnPropertyChanged("Contacts");
            }
        }
        public void Add()
        {
            ClientEditVM vm = new ClientEditVM();
            vm.AddMode();
            vm.ShowDialog();

            if(vm.IsComplete)
            {
                _contacts.Add(vm.Data);
                OnPropertyChanged("Contacts");
            }
        }