コード例 #1
0
        public OtherParamsForms(AppTexts AppTexts, SystemConfiguration SystemConfiguration)
        {
            InitializeComponent();
            appTexts            = AppTexts;
            this.Text           = AppTexts.ParameterName(81);
            systemConfiguration = SystemConfiguration;

            label1.Text = AppTexts.ParameterName(82);
            label2.Text = AppTexts.ParameterName(83);
            label3.Text = AppTexts.ParameterName(84);
            label4.Text = AppTexts.ParameterName(85);
            label5.Text = AppTexts.ParameterName(86);
            label6.Text = AppTexts.ParameterName(87);
            label7.Text = AppTexts.ParameterName(91);

            textBox1.Text = "0x" + systemConfiguration.StartMeasureAddr.ToString("X4");
            textBox2.Text = "0x" + systemConfiguration.EventCodeAddr.ToString("X4");
            textBox3.Text = "0x" + systemConfiguration.EventTimeAddr.ToString("X4");
            textBox4.Text = "0x" + systemConfiguration.EventBlockCount.ToString("X4");
            textBox5.Text = "0x" + systemConfiguration.LoadEventAddr.ToString("X4");
            textBox6.Text = "0x" + systemConfiguration.LoadEventDataAddr.ToString("X4");
            textBox7.Text = systemConfiguration.EventCount.ToString();

            digInBtn.Text       = appTexts.ParameterName(108);        SetButtonColor(digInBtn, systemConfiguration.EnaDigits);
            directAccBtn.Text   = appTexts.ParameterName(45);     SetButtonColor(directAccBtn, systemConfiguration.EnaDirectAccess);
            floatDirAccBtn.Text = appTexts.ParameterName(4);    SetButtonColor(floatDirAccBtn, systemConfiguration.EnaFloatDirectAccess);
            scopeBtn.Text       = appTexts.ParameterName(39);         SetButtonColor(scopeBtn, systemConfiguration.EnaScope);
            symsBtn.Text        = appTexts.ParameterName(17);          SetButtonColor(symsBtn, systemConfiguration.EnaLoadSyms);
            eventLogBtn.Text    = appTexts.ParameterName(99);      SetButtonColor(eventLogBtn, systemConfiguration.EnaEventLog);
            jogBtn.Text         = appTexts.ParameterName(111);           SetButtonColor(jogBtn, systemConfiguration.EnaJog);
            angleBtn.Text       = appTexts.ParameterName(120);         SetButtonColor(angleBtn, systemConfiguration.EnaAngle);
            forceDigBtn.Text    = appTexts.ParameterName(122);      SetButtonColor(forceDigBtn, systemConfiguration.EnaForceDig);
        }
コード例 #2
0
 private void loadBtn_Click(object sender, EventArgs e)
 {
     systemConfiguration = new SystemConfiguration();
     try
     {
         systemConfiguration.LoadFromFile();
     }
     catch
     {
         systemConfiguration = new SystemConfiguration();
     }
 }
コード例 #3
0
 public SystemConfiguratorForm(AppTexts AppTexts, SystemConfiguration SystemConfiguration)
 {
     InitializeComponent();
     systemConfiguration = SystemConfiguration;
     NewSystemConfigFlag = false;
     Texts = AppTexts;
     digitLabelButton.Title    = Texts.ParameterName(71);
     timeLabelButton.Title     = Texts.ParameterName(72);
     measureButton.Title       = Texts.ParameterName(75);
     eventsBtn.Title           = Texts.ParameterName(76);
     warnsButton.Title         = Texts.ParameterName(79);
     alarmsButton.Title        = Texts.ParameterName(80);
     addrsButton.Title         = Texts.ParameterName(81);
     defaultButton.ToolTipText = Texts.ParameterName(104);
     readyButton.Title         = Texts.ParameterName(110);
 }