public static System.Windows.Point GetMousePosition()
        {
            TrayPopup.Win32Point win32Point = default(TrayPopup.Win32Point);

            TrayPopup.GetCursorPos(ref win32Point);
            return(new System.Windows.Point((double)win32Point.X, (double)win32Point.Y));
        }
        public TrayPopup()
        {
            this.InitializeComponent();
            System.Windows.Point point = TrayPopup.GetMousePosition();
            point = this.GetDeviceCoordinates(point);
            base.HorizontalOffset = point.X;
            base.VerticalOffset   = point.Y;
            Graphics expr_4D = Graphics.FromHwnd(IntPtr.Zero);
            double   num     = (double)expr_4D.DpiX / 96.0;
            double   num2    = (double)expr_4D.DpiY / 96.0;

            base.HorizontalOffset = point.X / num;
            base.VerticalOffset   = point.Y / num2 - 16.0;
            this.Status.Content   = ObjectHolder.ConnectionStatus.ToString();
        }