/// <summary> /// The on preview key up. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="keyEventArgs"> /// The key event arguments. /// </param> private void OnPreviewKeyUp(object sender, KeyEventArgs keyEventArgs) { switch (keyEventArgs.Key) { case Key.Escape: ChatBar.HideChat(); break; case Key.F7: if (X.Instance.Debug || X.Instance.ReleaseTest) { Program.LobbyClient.Disconnect(); } break; case Key.F8: { if (X.Instance.Debug) { WindowManager.GrowlWindow.AddNotification(new GameInviteNotification(new InviteToGame { From = new User(new Jid("*****@*****.**")) }, new HostedGameData { Name = "Chicken" }, GameManager.Get().Games.First())); } break; } } }
/// <summary> /// The on preview key up. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="keyEventArgs"> /// The key event arguments. /// </param> private void OnPreviewKeyUp(object sender, KeyEventArgs keyEventArgs) { switch (keyEventArgs.Key) { case Key.Escape: ChatBar.HideChat(); break; } }
/// <summary> /// The on preview key up. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="keyEventArgs"> /// The key event arguments. /// </param> private void OnPreviewKeyUp(object sender, KeyEventArgs keyEventArgs) { switch (keyEventArgs.Key) { case Key.Escape: ChatBar.HideChat(); break; #if (DEBUG || Release_Test) case Key.F7: Program.LobbyClient.Disconnect(); break; #endif } }
public void Start(ChatBar chatBar) { Log.Info("ChatManager Start"); ChatBar = chatBar; }