public bool Equals(TDirectory other) { if (other == null) { return(false); } return(this.phoneNum.Equals(other.phoneNum)); }
private void onSelectedContact(object sender, RoutedEventArgs e) { TDirectory contact = (TDirectory)lvDataBinding.SelectedItem; edit win2 = new edit(contact.fullName, contact.phoneNum); win2.Show(); this.Close(); }
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)); } }