Ejemplo n.º 1
0
 private void radio_save_param_CheckedChanged(object sender, EventArgs e)
 {
     tx_history_report.Text = INI.GetValueFromIniFile("TDR", "HistoryFile");
     tx_export_report.Text  = INI.GetValueFromIniFile("TDR", "ExportFile");
 }
Ejemplo n.º 2
0
        private void btn_opt_ok_Click(object sender, EventArgs e)
        {
            //测试流程
            if (radio_pro_pass.Checked)
            {
                INI.WriteValueToIniFile("TDR", "TestStep", "Pass");
                optParam.testMode = 1;
            }
            else if (radio_pro_manual.Checked)
            {
                INI.WriteValueToIniFile("TDR", "TestStep", "Manual");
                optParam.testMode = 2;
            }
            else if (radio_pro_next.Checked)
            {
                INI.WriteValueToIniFile("TDR", "TestStep", "Next");
                optParam.testMode = 3;
            }
            else if (radio_pro_only_pass.Checked)
            {
                INI.WriteValueToIniFile("TDR", "TestStep", "PassRecord");
                optParam.testMode = 4;
            }
            else
            {
                INI.WriteValueToIniFile("TDR", "TestStep", "Next");
                optParam.testMode = 3;
            }

            //键盘
            if (radio_key_close.Checked)
            {
                INI.WriteValueToIniFile("TDR", "Keyboard", "Disable");
                optParam.keyMode = 0;
            }
            else
            {
                INI.WriteValueToIniFile("TDR", "Keyboard", "Spec");
                optParam.keyMode = 1;
            }

            //流水号
            if (radio_sn_manual.Checked)
            {
                INI.WriteValueToIniFile("TDR", "SN Method", "Manual");
            }
            else
            {
                INI.WriteValueToIniFile("TDR", "SN Method", "Auto");
            }

            INI.WriteValueToIniFile("TDR", "SN_Head", tx_sn_prefix.Text);
            optParam.snPrefix = tx_sn_prefix.Text;

            INI.WriteValueToIniFile("TDR", "SerialNumber", tx_sn_begin.Text);
            optParam.snBegin = tx_sn_begin.Text;

            //sava mode
            if (radio_save_date.Checked)
            {
                optParam.exportMode = 1;
                INI.WriteValueToIniFile("TDR", "Naming Method", "ByDate");

                INI.WriteValueToIniFile("TDR", "HistoryFile", tx_history_report.Text);
                optParam.historyExportFileName = tx_history_report.Text;

                INI.WriteValueToIniFile("TDR", "ExportFile", tx_export_report.Text);
                optParam.outputExportFileName = tx_export_report.Text;
            }
            else
            {
                optParam.exportMode = 2;
                INI.WriteValueToIniFile("TDR", "Naming Method", "ByProject");

                INI.WriteValueToIniFile("TDR", "HistoryFile", tx_history_report.Text);

                INI.WriteValueToIniFile("TDR", "ExportFile", tx_export_report.Text);
            }

            this.Close();
        }
Ejemplo n.º 3
0
 private void DevConnectSet_Load(object sender, EventArgs e)
 {
     combDevString.BackColor             = SystemColors.Window;
     combDevString.Text                  = INI.GetValueFromIniFile("Instrument", "AddressNA");
     CGloabal.g_InstrE5080BModule.adress = INI.GetValueFromIniFile("Instrument", "AddressNA");
 }