public void ShowPresetControls() { if (InvokeRequired) { Invoke(new Action(() => { PresetLabel.Show(); PresetList.Show(); PresetNameLabel.Show(); PresetNameTextbox.Show(); ProcessLabel.Show(); ProcessComboBox.Show(); NewPresetButton.Show(); SavePresetButton.Show(); DeleteButton.Show(); })); } else { PresetLabel.Show(); PresetList.Show(); PresetNameLabel.Show(); PresetNameTextbox.Show(); ProcessLabel.Show(); ProcessComboBox.Show(); NewPresetButton.Show(); SavePresetButton.Show(); DeleteButton.Show(); } }
public void HidePresetControls() { if (InvokeRequired) { Invoke(new Action(() => { PresetLabel.Hide(); PresetList.Hide(); PresetNameLabel.Hide(); PresetNameTextbox.Hide(); ProcessLabel.Hide(); ProcessComboBox.Hide(); NewPresetButton.Hide(); SavePresetButton.Hide(); DeleteButton.Hide(); KeyPanelClass.CurrentPanel = null; })); } else { PresetLabel.Hide(); PresetList.Hide(); PresetNameLabel.Hide(); PresetNameTextbox.Hide(); ProcessLabel.Hide(); ProcessComboBox.Hide(); NewPresetButton.Hide(); SavePresetButton.Hide(); DeleteButton.Hide(); KeyPanelClass.CurrentPanel = null; } }