Beispiel #1
0
        private void Button_NewContact(object sender, RoutedEventArgs e)
        {
            //present new contact dialog
            var d = new Windows.EditAccountDialog
            {
                Owner = Window.GetWindow(this)
            };

            d.ShowDialog();
        }
Beispiel #2
0
        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();
            }
        }