Пример #1
0
        /// <summary>
        /// Class specific initialization.
        /// </summary>
        protected override void Initialize()
        {
            // Let base class generate targes
            base.Initialize();

            // Create the drag feedback drawing class
            _dragFeedback = new DragFeedbackSolid();
            _dragFeedback.Start();
        }
Пример #2
0
        /// <summary>
        /// Perform initialization.
        /// </summary>
        /// <param name="squares">Show squares or diamonds.</param>
        /// <param name="callingControl">Calling control instance.</param>
        /// <param name="source">Type of source.</param>
        /// <param name="c">Source content.</param>
        /// <param name="wc">WindowContent that contains content.</param>
        /// <param name="ff">Floating form source.</param>
        /// <param name="dm">DockingManager instance.</param>
        /// <param name="offset">Screen offset.</param>
        protected override void InternalConstruct(bool squares,
                                                  Control callingControl,
                                                  Source source,
                                                  Content c,
                                                  WindowContent wc,
                                                  FloatingForm ff,
                                                  DockingManager dm,
                                                  Point offset)
        {
            // Create the outline specific feedback indicator
            DragFeedback = new DragFeedbackSolid();

            // Carry on with internal setup
            base.InternalConstruct(squares, callingControl, source, c, wc, ff, dm, offset);
        }
Пример #3
0
        /// <summary>
        /// Perform initialization.
        /// </summary>
        /// <param name="squares">Show squares or diamonds.</param>
        /// <param name="callingControl">Calling control instance.</param>
        /// <param name="source">Type of source.</param>
        /// <param name="c">Source content.</param>
        /// <param name="wc">WindowContent that contains content.</param>
        /// <param name="ff">Floating form source.</param>
        /// <param name="dm">DockingManager instance.</param>
        /// <param name="offset">Screen offset.</param>
        protected override void InternalConstruct(bool squares,
                                                  Control callingControl,
                                                  Source source,
                                                  Content c,
                                                  WindowContent wc,
                                                  FloatingForm ff,
                                                  DockingManager dm,
                                                  Point offset)
        {
            // Initialize zone specific details
            _currentHotZone = null;
            _dockingManager = dm;
            _dragFeedback   = new DragFeedbackSolid();

            // Let base class store information
            base.InternalConstruct(squares, callingControl, source, c, wc, ff, dm, offset);
        }
Пример #4
0
        /// <summary>
        /// Class specific initialization.
        /// </summary>
        protected override void Initialize()
        {
            // Create collection to hold generated targets
            _targetAreas = new TargetAreaCollection();

            // Create the top level drop targets
            _targetAreas.Add(new TargetAreaSides(Squares, Host, Leaf));

            // Process each potential leaf in turn
            TabGroupLeaf tgl = Host.FirstLeaf();

            while (tgl != null)
            {
                // Create all possible targets for this leaf
                _targetAreas.Add(new TargetAreaLeaf(Squares, Leaf, tgl));

                // Enumerate all leafs
                tgl = Host.NextLeaf(tgl);
            }

            // Create the drag feedback drawing class
            _dragFeedback = new DragFeedbackSolid();
            _dragFeedback.Start();
        }