public void OnKeyValueChange(KeyTextBox o, EventKey e) { if (KeyChanged != null) { KeyChanged(o, e); } }
void ktxtReposition_KeyChanged(KeyTextBox o, EventKey e) { PSettings.PreferenceAll.Global.ChangeSizeAndPosition = o.HotKeyValue; }
void ktxtOverlaysHotkey3_KeyChanged(KeyTextBox o, EventKey e) { var parent = HelpFunctions.findParentByName(o, "pnlOverlays"); if (parent.Name.Contains("Resource")) PSettings.PreferenceAll.OverlayResources.Hotkey3 = o.HotKeyValue; else if (parent.Name.Contains("Income")) PSettings.PreferenceAll.OverlayIncome.Hotkey3 = o.HotKeyValue; else if (parent.Name.Contains("Worker")) PSettings.PreferenceAll.OverlayWorker.Hotkey3 = o.HotKeyValue; else if (parent.Name.Contains("Apm")) PSettings.PreferenceAll.OverlayApm.Hotkey3 = o.HotKeyValue; else if (parent.Name.Contains("Army")) PSettings.PreferenceAll.OverlayArmy.Hotkey3 = o.HotKeyValue; else if (parent.Name.Contains("Maphack")) PSettings.PreferenceAll.OverlayMaphack.Hotkey3 = o.HotKeyValue; else if (parent.Name.Contains("Production")) PSettings.PreferenceAll.OverlayProduction.Hotkey3 = o.HotKeyValue; else if (parent.Name.Contains("Unit")) PSettings.PreferenceAll.OverlayUnits.Hotkey3 = o.HotKeyValue; else Messages.Show("Couldn't find parent!"); }
public void OnKeyValueChange(KeyTextBox o, EventKey e) { if (KeyChanged != null) KeyChanged(o, e); }