Ejemplo n.º 1
0
        /// <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;
            }
            }
        }
Ejemplo n.º 2
0
 /// <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;
     }
 }
Ejemplo n.º 3
0
        /// <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
            }
        }
Ejemplo n.º 4
0
 public void Start(ChatBar chatBar)
 {
     Log.Info("ChatManager Start");
     ChatBar = chatBar;
 }