Exemplo n.º 1
0
 //AB & ABo - Pressing the enter key has same affect as pressing the send button.
 private void UserNameBox_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         ChatButton.PerformClick();
         e.Handled = true;
     }
 }
Exemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (SupportButton != null)
            {
                SupportButton.Dispose();
                SupportButton = null;
            }

            if (ChatButton != null)
            {
                ChatButton.Dispose();
                ChatButton = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (CartButton != null)
            {
                CartButton.Dispose();
                CartButton = null;
            }

            if (ChatButton != null)
            {
                ChatButton.Dispose();
                ChatButton = null;
            }

            if (MyLibraryButton != null)
            {
                MyLibraryButton.Dispose();
                MyLibraryButton = null;
            }

            if (NotificationsButton != null)
            {
                NotificationsButton.Dispose();
                NotificationsButton = null;
            }

            if (ProfileButton != null)
            {
                ProfileButton.Dispose();
                ProfileButton = null;
            }

            if (ProfileButton2 != null)
            {
                ProfileButton2.Dispose();
                ProfileButton2 = null;
            }

            if (ProfilePic != null)
            {
                ProfilePic.Dispose();
                ProfilePic = null;
            }

            if (ProfilePicButton != null)
            {
                ProfilePicButton.Dispose();
                ProfilePicButton = null;
            }
        }