Ejemplo n.º 1
0
 public bool Equals(TDirectory other)
 {
     if (other == null)
     {
         return(false);
     }
     return(this.phoneNum.Equals(other.phoneNum));
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 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));
            }
        }