private void btnContact_Click(object sender, RoutedEventArgs e) { contactW = new ContactWindow(pd.Purchaser.ContactPerson); disableWindowContent(); contactW.ShowDialog(); //pd.Purchaser.ContactPerson = contactW.person; }
private void AddContact(object obj) { var contactWindow = new ContactWindow(0, Person.AddressNo); contactWindow.ShowDialog(); RefreshContacts(); }
private void EditContact(object obj) { var contact = (Contact)obj; var contactWindow = new ContactWindow(contact.PersonContactId, contact.PersonId); contactWindow.ShowDialog(); RefreshContacts(); }
public void EditAction() { ContactWindow window = new ContactWindow(); var viewModel = new EditContactViewModel(_repository, SelectedPerson, window.Close); window.DataContext = viewModel; window.ShowDialog(); LoadContactList(GetPeople()); }
private void btnContact_Click(object sender, RoutedEventArgs e) { if (purData == null) { purData = new PurchaserData(); } if (purData.Purchaser == null) { purData.Purchaser = new Purchaser(); } if (purData.Purchaser.ContactPerson == null) { purData.Purchaser.ContactPerson = new Person(); } contactW = new ContactWindow(purData.Purchaser.ContactPerson); contactW.ShowDialog(); purData.Purchaser.ContactPerson = contactW.person; }
private void btnContact_Click(object sender, RoutedEventArgs e) { contactW = new ContactWindow(purData.Purchaser.ContactPerson); contactW.ShowDialog(); purData.Purchaser.ContactPerson = contactW.person; }