//------------------------------------ADD EVENT HANDLERS FOR VIEW /// <summary> /// SHOULD ADD THIS TO THE BUTTON IN ADDITION TO HAVING THE SINGLEHOTKEY CHANGE PASS IN ITS ID . /// SO HAVE 2 += listeners for the change hotkey Click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ChangeHotkey_Click(object sender, RoutedEventArgs e) { string temp = singleHotKeyView.GetChampionIDText(); //this.ChangeHotkey.IsEnabled = false; singleHotKeyView.SetChampionIDText("Press New Hotkey..."); //how to get ID of what champion's hotkey we are changing? //Set listener for the window for the next Button Hit singleHotKeyView.KeyDown += SingleHotkeyChange_KeyDown; //unregister old, //register new //update text labels //update arrays of current hotkeys currently }
public SingleHotKeyPresenter(Keys k, String s, int id) { singleHotKeyModel = new SingleHotKeyModel(k, s, id); singleHotKeyView = new SingleHotKeyView(); singleHotKeyView.ChangeHotKey.Click += ChangeHotkey_Click; singleHotKeyView.SetChampionIDText(s); singleHotKeyView.SetCurrentHotKeyText(k.ToString()); }
public SingleHotKeyPresenter(Keys k, String s, int id) { singleHotKeyModel = new SingleHotKeyModel(k, s, id); singleHotKeyView = new SingleHotKeyView(); singleHotKeyView.ChangeHotKey.Click += ChangeHotkey_Click; singleHotKeyView.SetChampionIDText(s); singleHotKeyView.SetCurrentHotKeyText(k.ToString()); }