Exemplo n.º 1
0
 public SettingsForm(SettingsCallBack callback)
 {
     InitializeComponent();
     this.comboCharSelection.SelectedIndex = Array.IndexOf(Keymap, Settings.CharSelection);
     this.comboReset.SelectedIndex = Array.IndexOf(Keymap, Settings.ResetKey);
     this.comboScreenshotKey.SelectedIndex = Array.IndexOf(Keymap, Settings.ScreenshotKey);
     this.comboStop.SelectedIndex = Array.IndexOf(Keymap, Settings.StopKey);
     this.comboToggleHotkey.SelectedIndex = Array.IndexOf(Keymap, Settings.ToggleHotkeys);
     this.textWindowTitle.Text = Settings.WindowTitle;
     this.textClassicProcess.Text = Settings.ClassicProcess;
     this.textRenewalProcess.Text = Settings.RenewalProcess;
     this.callback = callback;
 }
Exemplo n.º 2
0
 public SettingsForm(SettingsCallBack callback)
 {
     InitializeComponent();
     this.comboCharSelection.SelectedIndex = Array.IndexOf(Keymap, Settings.CharSelection);
     this.comboReset.SelectedIndex         = Array.IndexOf(Keymap, Settings.ResetKey);
     this.comboScreenshotKey.SelectedIndex = Array.IndexOf(Keymap, Settings.ScreenshotKey);
     this.comboStop.SelectedIndex          = Array.IndexOf(Keymap, Settings.StopKey);
     this.comboToggleHotkey.SelectedIndex  = Array.IndexOf(Keymap, Settings.ToggleHotkeys);
     this.textWindowTitle.Text             = Settings.WindowTitle;
     this.textClassicProcess.Text          = Settings.ClassicProcess;
     this.textRenewalProcess.Text          = Settings.RenewalProcess;
     this.callback = callback;
 }