Ejemplo n.º 1
0
        public void checkConfig()
        {
            bool configured    = false;
            bool configCrashed = false;

            try
            {
                configured = CAwsConfig.Instance.isConfigured();
            }
            catch (Exception ex)
            {
                System.Windows.MessageBox.Show(ex.Message, "EC2 Bootstrapper", MessageBoxButton.OK,
                                               MessageBoxImage.Error);
                configCrashed = true;
            }

            if (configured == true)
            {
                configurationReady();
            }
            else if (configCrashed == true)
            {
                configMenu.IsEnabled = false;
            }
            else
            {
                ProgBar.Visibility = Visibility.Hidden;

                AwsConfiguration config = new AwsConfiguration();
                config.dashboard = this;
                config.ShowDialog();
            }
        }
Ejemplo n.º 2
0
        //view menu
        private void configureMenu_Click(object sender, RoutedEventArgs e)
        {
            AwsConfiguration config = new AwsConfiguration();

            config.dashboard = this;
            config.ShowDialog();
        }