private void SetWriteButtonDefault() { WriteButton.Font = DefaultButtonFont; WriteButton.Text = Constants.WriteButtonDefaultText; WriteButton.Enabled = ToggleButton.Checked || !ToggleButton.Enabled; WriteButton.Update(); }
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(); }
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(); }
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(); }