コード例 #1
0
        private void CreateUC_Config(string btnName)
        {
            UC_ConfigBase uc_config = null;

            switch (btnName)
            {
            case "crystalButton_RefreshConfig":
                uc_config = new UC_CycleConfig();
                break;

            case "crystalButton_HWConfig":
                uc_config = new UC_HWConfig();
                break;

            //case "crystalButton_CareRegisterConfig":
            //    uc_config = new UC_CareServerConfig();
            //    break;
            case "crystalButton_MonitorCardPowerConfig":
                uc_config = new UC_PowerControlConfig();
                break;

            case "crystalButton_DataAltarmConfig":
                uc_config = new UC_DataAlarmConfig();
                break;

            case "crystalButton_ControlConfig":
                uc_config = new UC_WHControlConfig();
                break;

            case "crystalButton_ControlLog":
                break;

            case "crystalButton_BrightnessConfig":
                uc_config = new UC_BrightnessAllConfig();
                break;

            case "crystalButton_NotifySetting":
                uc_config = new UC_EMailNotify();
                break;

            case "crystalButton_EMailLog":
                uc_config = new UC_EMailNotifyLog();
                break;

            default:
                break;
            }
            uc_config.Dock     = DockStyle.Fill;
            uc_config.ScreenSN = comboBox_Screen.SelectedText;
            if (!_dicConfigControls.ContainsKey(btnName))
            {
                _dicConfigControls.Add(btnName, uc_config);
            }
        }
コード例 #2
0
 private void CreateUC_Config(string btnName)
 {
     UC_ConfigBase uc_config = null;
     switch (btnName)
     {
         case "crystalButton_RefreshConfig":
             uc_config = new UC_CycleConfig();
             break;
         case "crystalButton_HWConfig":
             uc_config = new UC_HWConfig();
             break;
         //case "crystalButton_CareRegisterConfig":
         //    uc_config = new UC_CareServerConfig();
         //    break;
         case "crystalButton_MonitorCardPowerConfig":
             uc_config = new UC_PowerControlConfig();
             break;
         case "crystalButton_DataAltarmConfig":
             uc_config = new UC_DataAlarmConfig();
             break;
         case "crystalButton_ControlConfig":
             uc_config = new UC_WHControlConfig();
             break;
         case "crystalButton_ControlLog":
             break;
         case "crystalButton_BrightnessConfig":
             uc_config = new UC_BrightnessAllConfig();
             break;
         case "crystalButton_NotifySetting":
             uc_config = new UC_EMailNotify();
             break;
         case "crystalButton_EMailLog":
             uc_config = new UC_EMailNotifyLog();
             break;
         default:
             break;
     }
     uc_config.Dock = DockStyle.Fill;
     uc_config.ScreenSN = comboBox_Screen.SelectedText;
     if (!_dicConfigControls.ContainsKey(btnName))
     {
         _dicConfigControls.Add(btnName, uc_config);
     }
 }