예제 #1
0
파일: Form1.cs 프로젝트: 0xdhac/MK2360
 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();
     }
 }
예제 #2
0
파일: Form1.cs 프로젝트: 0xdhac/MK2360
 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;
     }
 }