예제 #1
0
 public bool Equals(TDirectory other)
 {
     if (other == null)
     {
         return(false);
     }
     return(this.phoneNum.Equals(other.phoneNum));
 }
예제 #2
0
        private void onSelectedContact(object sender, RoutedEventArgs e)
        {
            TDirectory contact = (TDirectory)lvDataBinding.SelectedItem;

            edit win2 = new edit(contact.fullName, contact.phoneNum);

            win2.Show();
            this.Close();
        }
예제 #3
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            TDirectory objAsTDirectory = obj as TDirectory;

            if (objAsTDirectory == null)
            {
                return(false);
            }
            else
            {
                return(Equals(objAsTDirectory));
            }
        }