Beispiel #1
0
 public EBMConfigureInfo(OperateType type, byte tag, EBMConfigure.Configure config, List <string> ebmId = null)
 {
     InitializeComponent();
     this.tag       = tag;
     this.type      = type;
     this.Configure = config;
     InitPanelLayout(ebmId);
 }
Beispiel #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            switch (tag)
            {
            case Utils.ComboBoxHelper.ConfigureTimeServiceTag:
                if (!pnlTime.ValidatData())
                {
                    return;
                }
                Configure = pnlTime.GetData();
                break;

            case Utils.ComboBoxHelper.ConfigureSetAddressTag:
                if (!pnlSet.ValidatData())
                {
                    return;
                }
                Configure = pnlSet.GetData();
                break;

            case Utils.ComboBoxHelper.ConfigureWorkModeTag:
                if (!pnlWork.ValidatData())
                {
                    return;
                }
                Configure = pnlWork.GetData();
                break;

            case Utils.ComboBoxHelper.ConfigureMainFrequencyTag:
                if (!pnlFreq.ValidatData())
                {
                    return;
                }
                Configure = pnlFreq.GetData();
                break;

            case Utils.ComboBoxHelper.ConfigureRebackTag:
                if (!pnlReback.ValidatData())
                {
                    return;
                }
                Configure = pnlReback.GetData();
                break;

            case Utils.ComboBoxHelper.ConfigureDefaltVolumeTag:
                if (!pnlVolumn.ValidatData())
                {
                    return;
                }
                Configure = pnlVolumn.GetData();
                break;

            case Utils.ComboBoxHelper.ConfigureRebackPeriodTag:
                if (!pnlPeriod.ValidatData())
                {
                    return;
                }
                Configure = pnlPeriod.GetData();
                break;

            case Utils.ComboBoxHelper.ConfigureContentMoniterRetbackTag:
                if (!pnlContentMoniterRetback.ValidatData())
                {
                    return;
                }
                Configure = pnlContentMoniterRetback.GetData();
                break;

            case Utils.ComboBoxHelper.ConfigureContentRealMoniterTag:
                if (!pnlContentRealMoniter.ValidatData())
                {
                    return;
                }
                Configure = pnlContentRealMoniter.GetData();
                break;

            case Utils.ComboBoxHelper.ConfigureStatusRetbackTag:
                if (!pnlStatusRetback.ValidatData())
                {
                    return;
                }
                Configure = pnlStatusRetback.GetData();
                break;

            case Utils.ComboBoxHelper.ConfigureSoftwareUpGradeTag:
                if (!pnlSoftwareUpGrade.ValidatData())
                {
                    return;
                }
                Configure = pnlSoftwareUpGrade.GetData();
                break;

            case Utils.ComboBoxHelper.ConfigureRdsConfigTag:
                if (!pnlRdsConfig.ValidatData())
                {
                    return;
                }
                Configure = pnlRdsConfig.GetData();
                break;

            case Utils.ComboBoxHelper.ConfigureStatusRetbackGXTag:
                if (!pnlStatusRetbackGX.ValidatData())
                {
                    return;
                }
                Configure = pnlStatusRetbackGX.GetData();
                break;
            }
            DialogResult = DialogResult.OK;
        }
Beispiel #3
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            switch (tag)
            {
            case 1:
                if (!pnlTime.ValidatData())
                {
                    return;
                }
                Configure = pnlTime.GetData();
                break;

            case 2:
                if (!pnlSet.ValidatData())
                {
                    return;
                }
                Configure = pnlSet.GetData();
                break;

            case 3:
                if (!pnlWork.ValidatData())
                {
                    return;
                }
                Configure = pnlWork.GetData();
                break;

            case 4:
                if (!pnlFreq.ValidatData())
                {
                    return;
                }
                Configure = pnlFreq.GetData();
                break;

            case 5:
                if (!pnlReback.ValidatData())
                {
                    return;
                }
                Configure = pnlReback.GetData();
                break;

            case 6:
                if (!pnlVolumn.ValidatData())
                {
                    return;
                }
                Configure = pnlVolumn.GetData();
                break;

            case 7:
                if (!pnlPeriod.ValidatData())
                {
                    return;
                }
                Configure = pnlPeriod.GetData();
                break;

            case 8:
                if (!pnlContentMoniterRetback.ValidatData())
                {
                    return;
                }
                Configure = pnlContentMoniterRetback.GetData();
                break;

            case 9:
                if (!pnlContentRealMoniter.ValidatData())
                {
                    return;
                }
                Configure = pnlContentRealMoniter.GetData();
                break;

            case 11:
                if (!pnlStatusRetback.ValidatData())
                {
                    return;
                }
                Configure = pnlStatusRetback.GetData();
                break;
            }
            DialogResult = DialogResult.OK;
        }