protected static void OnContactsChanged(ContactsEventArgs e) { if (ContactsChanged != null) { ContactsChanged(e); } }
private void openEditOrAddForm(object sender, ContactsEventArgs args) { if (args != null) { var contact = args.Contact; var cities = args.Cities; var phoneTypes = args.PhoneTypes; if (contact != null && cities != null && phoneTypes != null) { ForumView forumView = new ForumView(contact, cities, phoneTypes); forumView.ShowDialog(); _viewModel.SearchCommand.Execute(null); } } }