예제 #1
0
        private void CalculatePopupRect()
        {
            var sPopupSize = _current.Size;
            var sOffset    = _current.BorderOffset;

            var rc = new Rectangle();

            var tl = TaskbarLocation.Detect();

            rc = GetTaskbarPopupLocation(tl, sPopupSize, sOffset);

            _current.Location = rc;

            _edge = tl.Edge;

            var pt = new Point(
                rc.Left + rc.Width / 2,
                rc.Top + rc.Height / 2
                );

            _popupScreen = Screen.FromPoint(pt);
        }
예제 #2
0
        private void CalculatePopupRect()
        {
            var sPopupSize = _current.Size;
            var sOffset = _current.BorderOffset;

            var rc = new Rectangle();

            var tl = TaskbarLocation.Detect();

            rc = GetTaskbarPopupLocation(tl, sPopupSize, sOffset);

            _current.Location = rc;

            _edge = tl.Edge;

            var pt = new Point(
                rc.Left + rc.Width / 2,
                rc.Top + rc.Height / 2
            );

            _popupScreen = Screen.FromPoint(pt);
        }
예제 #3
0
 private TaskbarLocation(Rectangle taskbar, Rectangle workArea, TaskbarLocationEdge edge)
 {
     Taskbar = taskbar;
     WorkArea = workArea;
     Edge = edge;
 }
예제 #4
0
 private TaskbarLocation(Rectangle taskbar, Rectangle workArea, TaskbarLocationEdge edge)
 {
     Taskbar  = taskbar;
     WorkArea = workArea;
     Edge     = edge;
 }