Esempio n. 1
0
        private async void MetroWindow_ContentRendered(object sender, EventArgs e)
        {
            //warn if IIS not detected

            if (!MainViewModel.IsIISAvailable)
            {
                MessageBox.Show(SR.MainWindow_IISNotAvailable);
            }

            if (!MainViewModel.HasRegisteredContacts)
            {
                //start by registering
                MessageBox.Show(SR.MainWindow_GetStartGuideWithNewCert);
                var d = new Windows.EditContactDialog {
                    Owner = this
                };
                d.ShowDialog();
            }

            //check for updates and report result to view model
            if (Management.CoreAppSettings.Current.CheckForUpdatesAtStartup)
            {
                var updateCheck = await new Certify.Management.Util().CheckForUpdates();
                if (updateCheck != null && updateCheck.IsNewerVersion)
                {
                    MainViewModel.UpdateCheckResult = updateCheck;
                    MainViewModel.IsUpdateAvailable = true;
                }
            }
        }
Esempio n. 2
0
        private void Button_NewContact(object sender, RoutedEventArgs e)
        {
            //present new contact dialog
            var d = new Windows.EditContactDialog();

            d.Owner = this;
            d.ShowDialog();
        }
Esempio n. 3
0
 private void EnsureContactRegistered()
 {
     if (!_appViewModel.HasRegisteredContacts)
     {
         //start by registering
         MessageBox.Show(SR.MainWindow_GetStartGuideWithNewCert);
         var d = new Windows.EditContactDialog {
         };
         d.ShowDialog();
     }
 }
Esempio n. 4
0
 private void MetroWindow_ContentRendered(object sender, EventArgs e)
 {
     if (!MainViewModel.HasRegisteredContacts)
     {
         //start by registering
         MessageBox.Show("Get started by registering a new contact, then you can start requesting certificates.");
         var d = new Windows.EditContactDialog {
             Owner = this
         };
         d.ShowDialog();
     }
 }
Esempio n. 5
0
        private void MetroWindow_ContentRendered(object sender, EventArgs e)
        {
            //warn if IIS not detected

            if (!MainViewModel.IsIISAvailable)
            {
                MessageBox.Show("IIS Was not detected on this server, important functionality will be unavailable. If you know IIS is installed and working on this server, please report this error to apps@webprofusion providing details of your server Operating System version and IIS versions");
            }

            if (!MainViewModel.HasRegisteredContacts)
            {
                //start by registering
                MessageBox.Show("Get started by registering a new contact, then you can start requesting certificates.");
                var d = new Windows.EditContactDialog {
                    Owner = this
                };
                d.ShowDialog();
            }
        }
Esempio n. 6
0
        private void MetroWindow_ContentRendered(object sender, EventArgs e)
        {
            //warn if IIS not detected

            if (!MainViewModel.IsIISAvailable)
            {
                MessageBox.Show(SR.MainWindow_IISNotAvailable);
            }

            if (!MainViewModel.HasRegisteredContacts)
            {
                //start by registering
                MessageBox.Show(SR.MainWindow_GetStartGuideWithNewCert);
                var d = new Windows.EditContactDialog {
                    Owner = this
                };
                d.ShowDialog();
            }
        }