Пример #1
0
 private void SetWriteButtonDefault()
 {
     WriteButton.Font    = DefaultButtonFont;
     WriteButton.Text    = Constants.WriteButtonDefaultText;
     WriteButton.Enabled = ToggleButton.Checked || !ToggleButton.Enabled;
     WriteButton.Update();
 }
Пример #2
0
        private void SetButtonDefaults()
        {
            ToggleButton.Checked = LastToggleChecked;

            ToggleButton.Font = DefaultButtonFont;
            ToggleButton.Text = ToggleButton.Checked ? "Enabled" : "Disabled";
            ToggleButton.Update();

            WriteButton.Font    = DefaultButtonFont;
            WriteButton.Text    = Constants.WriteButtonDefaultText;
            WriteButton.Enabled = ToggleButton.Checked || !ToggleButton.Enabled;
            WriteButton.Update();
        }
Пример #3
0
        private void ToggleButtonDelay()
        {
            LastToggleChecked    = ToggleButton.Checked;
            ToggleButton.Checked = false;
            ToggleButton.Enabled = false;
            ToggleButton.Font    = SmallButtonFont;
            ToggleButton.Text    = $"{Constants.ButtonDelayText} : {ButtonTimerInterval} ms";
            ToggleButton.Update();

            WriteButton.Enabled = false;
            WriteButton.Update();

            StartButtonTimer();
        }
Пример #4
0
        private void ButtonDelay(ButtonBase btn)
        {
            ToggleButton.Checked = false;

            ToggleButton.Enabled = false;
            WriteButton.Enabled  = false;

            btn.Font = SmallButtonFont;
            btn.Text = $"{Constants.ButtonDelayText} : {ButtonTimerInterval} ms";

            ToggleButton.Update();
            WriteButton.Update();

            StartButtonTimer();
        }