예제 #1
0
        /// <summary>
        /// Initialize a new instance of the KryptonPageDragEventArgs class.
        /// </summary>
        /// <param name="screenPoint">Screen point of the mouse.</param>
        /// <param name="pages">Array of event associated pages.</param>
        public PageDragEventArgs(Point screenPoint,
                                 KryptonPage[] pages)
        {
            _screenPoint = screenPoint;
            _pages       = new KryptonPageCollection();

            if (pages != null)
            {
                _pages.AddRange(pages);
            }
        }
        /// <summary>
        /// Initialize a new instance of the PageDragEndEventArgs class.
        /// </summary>
        /// <param name="dropped">True if a drop was performed; otherwise false.</param>
        /// <param name="pages">Array of event associated pages.</param>
        public PageDragEndEventArgs(bool dropped,
                                    KryptonPage[] pages)
        {
            Dropped = dropped;
            Pages   = new KryptonPageCollection();

            if (pages != null)
            {
                Pages.AddRange(pages);
            }
        }
예제 #3
0
        /// <summary>
        /// Initialize a new instance of the PageDragCancelEventArgs class.
        /// </summary>
        /// <param name="elementOffset">Offset from the top left of the element.</param>
        /// <param name="screenPoint">Screen point of the mouse.</param>
        /// <param name="c">Control that started the drag operation.</param>
        /// <param name="pages">Array of event associated pages.</param>
        public PageDragCancelEventArgs(Point screenPoint,
                                       Point elementOffset,
                                       Control c,
                                       KryptonPage[] pages)
        {
            _screenPoint   = screenPoint;
            _elementOffset = elementOffset;
            _c             = c;
            _pages         = new KryptonPageCollection();

            if (pages != null)
            {
                _pages.AddRange(pages);
            }
        }