public PhoneEntity CreateNewPhone ( string number, string phoneType ) { var phone = new PhoneEntity ( this ); phone.Number = number; phone.Type = phoneType; _phones.Add ( phone ); NotifyItemAdded ( () => Phones, phone ); OnNewPhoneAdded ( this, new NewPhoneEventArgs ( phone ) ); return phone; }
public PhoneEntity CreateNewPhone(string number, string phoneType) { var phone = new PhoneEntity(this); phone.Number = number; phone.Type = phoneType; _phones.Add(phone); NotifyItemAdded(() => Phones, phone); OnNewPhoneAdded(this, new NewPhoneEventArgs(phone)); return(phone); }
public NewPhoneEventArgs(PhoneEntity phone) { NewPhone = phone; }
public NewPhoneEventArgs ( PhoneEntity phone ) { NewPhone = phone; }