예제 #1
0
        internal static void ShowPopup(Rectangle parentRect, UserAccount account)
        {
            ClosePopup();

            _Form          = new UserAccountPopup(account);
            _Form.Location = new Point(parentRect.Right - _Form.Width - 1, parentRect.Bottom);
            WinAPI.ShowInactiveTopmostForm(_Form);
        }
예제 #2
0
        private void _LabelUser_MouseHover(object sender, EventArgs e)
        {
            if (_UserAccount == null)
            {
                return;
            }

            Rectangle rect = this.RectangleToScreen(new Rectangle(Point.Empty, this.Size));

            UserAccountPopup.ShowPopup(rect, _UserAccount);
        }
예제 #3
0
 private void _LabelUser_MouseLeave(object sender, EventArgs e)
 {
     UserAccountPopup.ClosePopup();
 }