예제 #1
0
        private void AddPhone()
        {
            var phone = DefaultManager.Instance.DefaultPhone;

            DataManager.Instance.AddPhoneToPerson(Model, phone);

            var vm = new PhoneViewModel(phone);

            PersonPhones.Add(vm);
            CurrentPhone = vm;
        }
예제 #2
0
        private void AddPhone()
        {
            var phone = DefaultManager.Instance.DefaultPhone;
            DataManager.Instance.AddPhoneToPerson(Model, phone);

            var vm = new PhoneViewModel(phone);
            PersonPhones.Add(vm);
            CurrentPhone = vm;
        }
예제 #3
0
 private void DeletePhone()
 {
     DataManager.Instance.RemovePhone(Model, CurrentPhone.Model);
     PersonPhones.Remove(CurrentPhone);
     CurrentPhone = null;
 }