Esempio n. 1
0
        private void ShowPanel(ENUMPanel enumPanel)
        {
            PANEL = enumPanel;
            if (configManager.clientRuntimeInfo.sessionID != string.Empty)
            {
                switch (enumPanel)
                {
                case ENUMPanel.PANEL_ACTION_HANDLER:
                    HideAllControls();
                    panelExecuteCommand.Show();
                    break;

                case ENUMPanel.PANEL_SERVICES_HANDLER:
                    HideAllControls();
                    panelServiceHandler.Show();
                    break;

                case ENUMPanel.PANEL_SQL_CLIENT:
                    HideAllControls();
                    panelSQLClient.Show();
                    break;

                case ENUMPanel.PANEL_TASK_MANAGER:
                    HideAllControls();
                    panelTaskManager.Show();
                    break;
                }
            }
        }
Esempio n. 2
0
 private void ChangePanel(ENUMPanel panel)
 {
     if (CauseValidation())
     {
         UpdateConfig(PANEL);
         ShowPanel(panel);
     }
     else
     {
         MessageBox.Show(this, configManager.GetConsolidatedError("Error"));
     }
 }
Esempio n. 3
0
        private void UpdateConfig(ENUMPanel enumPanel)
        {
            switch (enumPanel)
            {
            case ENUMPanel.PANEL_ACTION_HANDLER:
                panelExecuteCommand.UpdateConfig();
                break;

            case ENUMPanel.PANEL_SERVICES_HANDLER:
                panelServiceHandler.UpdateConfig();
                break;

            case ENUMPanel.PANEL_SQL_CLIENT:
                panelSQLClient.UpdateConfig();
                break;

            case ENUMPanel.PANEL_TASK_MANAGER:
                panelTaskManager.UpdateConfig();
                break;
            }
        }
Esempio n. 4
0
        private void ShowPanel(ENUMPanel enumPanel)
        {
            PANEL = enumPanel;
            switch (enumPanel)
            {
            case ENUMPanel.PANEL_DATABASE_WATCHER:
                HideAllControls();
                panelDatabaseWatcher.Show();
                break;

            case ENUMPanel.PANEL_DRIVE_CONTROLLER:
                HideAllControls();
                panelDriveController.Show();
                break;

            case ENUMPanel.PANEL_FTP_SETTINGS:
                HideAllControls();
                panelFTPSettings.Show();
                break;

            case ENUMPanel.PANEL_HOME:
                HideAllControls();
                panelHome.Show();
                break;

            case ENUMPanel.PANEL_PHY_MEM_WATCHER:
                HideAllControls();
                panelPhyMemController.Show();
                break;

            case ENUMPanel.PANEL_SERVICE_WATCHER:
                HideAllControls();
                panelServiceWatcher.Show();
                break;

            case ENUMPanel.PANEL_SMTP_SETTINGS:
                HideAllControls();
                panelSMTPSettings.Show();
                break;

            case ENUMPanel.PANEL_SUBSCRIPTION_CONTROLLER:
                HideAllControls();
                panelTransportController.Show();
                break;

            case ENUMPanel.PANEL_LOGGER:
                HideAllControls();
                panelLogger.Show();
                break;

            case ENUMPanel.PANEL_MEMEORY_ANALYZER:
                HideAllControls();
                panelMemoryAnalyzer.Show();
                break;

            case ENUMPanel.PANEL_EVENT_REPORTING:
                HideAllControls();
                panelCrashReporting.Show();
                break;

            case ENUMPanel.PANEL_SYSTEM_INFORMATION:
                HideAllControls();
                panelSystemInformation.Show();
                break;

            case ENUMPanel.PANEL_USER_CONTROLLER:
                HideAllControls();
                panelUserController.Show();
                break;

            case ENUMPanel.PANEL_ACTION_CONTROLLER:
                HideAllControls();
                panelActionController.Show();
                break;

            case ENUMPanel.PANEL_SQL_CONTROLLER:
                HideAllControls();
                panelSQLContoller.Show();
                break;

            case ENUMPanel.PANEL_SERVICE_CONTROLLER:
                HideAllControls();
                panelServiceController.Show();
                break;
            }
        }
 private void UpdateConfig(ENUMPanel enumPanel)
 {
     switch (enumPanel)
     {
         case ENUMPanel.PANEL_DATABASE_WATCHER:
             panelDatabaseWatcher.UpdateConfig();
             break;
         case ENUMPanel.PANEL_DRIVE_CONTROLLER:
             panelDriveController.UpdateConfig();
             break;
         case ENUMPanel.PANEL_FTP_SETTINGS:
             panelFTPSettings.UpdateConfig();
             break;
         case ENUMPanel.PANEL_HOME:
             panelHome.UpdateConfig();
             break;
         case ENUMPanel.PANEL_PHY_MEM_WATCHER:
             panelPhyMemController.UpdateConfig();
             break;
         case ENUMPanel.PANEL_SERVICE_WATCHER:
             panelServiceWatcher.UpdateConfig();
             break;
         case ENUMPanel.PANEL_SMTP_SETTINGS:
             panelSMTPSettings.UpdateConfig();
             break;
         case ENUMPanel.PANEL_SUBSCRIPTION_CONTROLLER:
             panelTransportController.UpdateConfig();
             break;
         case ENUMPanel.PANEL_LOGGER:
             panelLogger.UpdateConfig();
             break;
         case ENUMPanel.PANEL_MEMEORY_ANALYZER :
             panelMemoryAnalyzer.UpdateConfig();
             break;
         case ENUMPanel.PANEL_EVENT_REPORTING :
             panelCrashReporting.UpdateConfig();
             break;
         case ENUMPanel.PANEL_SYSTEM_INFORMATION:
             panelSystemInformation.UpdateConfig();
             break;
         case ENUMPanel.PANEL_USER_CONTROLLER:
             panelUserController.UpdateConfig();
             break;
         case ENUMPanel.PANEL_ACTION_CONTROLLER:
             panelActionController.UpdateConfig();
             break;
         case ENUMPanel.PANEL_SQL_CONTROLLER:
             panelSQLContoller.UpdateConfig();
             break;
         case ENUMPanel.PANEL_SERVICE_CONTROLLER:
             panelServiceController.UpdateConfig();
             break;
     }
 }
 private void UpdateConfig(ENUMPanel enumPanel)
 {
     switch (enumPanel)
     {
         case ENUMPanel.PANEL_ACTION_HANDLER:
             panelExecuteCommand.UpdateConfig();
             break;
         case ENUMPanel.PANEL_SERVICES_HANDLER:
             panelServiceHandler.UpdateConfig();
             break;
         case ENUMPanel.PANEL_SQL_CLIENT:
             panelSQLClient.UpdateConfig();
             break;
         case ENUMPanel.PANEL_TASK_MANAGER:
             panelTaskManager.UpdateConfig();
             break;
     }
 }
 private void ShowPanel(ENUMPanel enumPanel)
 {
     PANEL = enumPanel;
     if (configManager.clientRuntimeInfo.sessionID != string.Empty)
     {
         switch (enumPanel)
         {
             case ENUMPanel.PANEL_ACTION_HANDLER:
                 HideAllControls();
                 panelExecuteCommand.Show();
                 break;
             case ENUMPanel.PANEL_SERVICES_HANDLER:
                 HideAllControls();
                 panelServiceHandler.Show();
                 break;
             case ENUMPanel.PANEL_SQL_CLIENT:
                 HideAllControls();
                 panelSQLClient.Show();
                 break;
             case ENUMPanel.PANEL_TASK_MANAGER:
                 HideAllControls();
                 panelTaskManager.Show();
                 break;
         }
     }
 }
 private void ChangePanel(ENUMPanel panel)
 {
     if (CauseValidation())
     {
         UpdateConfig(PANEL);
         ShowPanel(panel);
     }
     else
     {
         MessageBox.Show(this, configManager.GetConsolidatedError("Error"));
     }
 }