private void Button_NewContact(object sender, RoutedEventArgs e) { //present new contact dialog var d = new Windows.EditAccountDialog { Owner = Window.GetWindow(this) }; d.ShowDialog(); }
private void EnsureContactRegistered() { if (!_appViewModel.HasRegisteredContacts) { //start by registering MessageBox.Show(SR.MainWindow_GetStartGuideWithNewCert); var d = new Windows.EditAccountDialog { Owner = Window.GetWindow(this) }; d.ShowDialog(); } }