Ejemplo n.º 1
0
        private void lblapp_Click(object sender, EventArgs e)
        {
            ApplicationInformation app = new ApplicationInformation();

            app.Show();
            this.Close();
        }
Ejemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            ApplicationInformation rd = new ApplicationInformation();

            rd.Show();
            this.Close();
        }
Ejemplo n.º 3
0
        void bgwr_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            var application = new ApplicationInformation();

            application.Execute(false);
            var iisInformation = new IISInformation();

            iisInformation.Execute(false);
            var sqlServerDiagnostics = new SQLServerDiagnostics();

            sqlServerDiagnostics.Execute(false);
            var sqlServer = new SQLServer();

            sqlServer.Execute(false);
            var ssrsConfiguration = new SSRSConfiguration();

            ssrsConfiguration.Execute(false);
            var ssasConfiguration = new SSASConfiguration();

            ssasConfiguration.Execute(false);
            var eventLog = new EventLog();

            eventLog.Execute(false);

            var          frmapplog = new Applicationlogs();
            DialogResult dr        = frmapplog.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                frmapplog.Close();
                var frmiislogs = new IISInformationlogs();
                var iisDialog  = frmiislogs.ShowDialog(this);
                if (iisDialog == DialogResult.OK)
                {
                    frmiislogs.Close();
                    var frmsqlserverdiagnostics    = new SQLServerDiagnosticslogs();
                    var sqlServerDiagnosticsDialog = frmsqlserverdiagnostics.ShowDialog(this);
                    if (sqlServerDiagnosticsDialog == DialogResult.OK)
                    {
                        frmsqlserverdiagnostics.Close();
                        var sqlServerLogs      = new SQLServerlogs();
                        var sqlServerLogDialog = sqlServerLogs.ShowDialog(this);
                        if (sqlServerLogDialog == DialogResult.OK)
                        {
                            sqlServerLogs.Close();
                            var ssrsLogs      = new SSRSConfigurationLogs();
                            var ssrsLogDialog = ssrsLogs.ShowDialog(this);
                            if (ssrsLogDialog == DialogResult.OK)
                            {
                                ssrsLogs.Close();
                                var ssasLogs      = new SSASConfigurationlogs();
                                var ssasLogDialog = ssasLogs.ShowDialog(this);
                                if (ssasLogDialog == DialogResult.OK)
                                {
                                    ssasLogs.Close();
                                    var eventLogs      = new Eventlogs();
                                    var eventLogDialog = eventLogs.ShowDialog(this);
                                    if (eventLogDialog == DialogResult.OK)
                                    {
                                        eventLogs.Close();
                                        this.Show();
                                    }
                                }
                            }
                        }
                    }
                }
            }
            this.Enabled              = true;
            lblprogress.Visible       = false;
            progressBar1.Visible      = false;
            button2.Enabled           = true;
            oneclickexecution.Enabled = true;
            //ResourceInformation rd = new ResourceInformation();
            //rd.Show();
            //this.Close();
        }