/// <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);
            }
        }
示例#2
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);
            }
        }
示例#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;
            Control       = c;
            Pages         = new KryptonPageCollection();

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