示例#1
0
        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;
        }
示例#2
0
        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);
        }
示例#3
0
 public NewPhoneEventArgs(PhoneEntity phone)
 {
     NewPhone = phone;
 }
示例#4
0
 public NewPhoneEventArgs ( PhoneEntity phone )
 {
     NewPhone = phone;
 }