Esempio n. 1
0
 /// <summary>
 /// Initialize a new instance of the KryptonDockingEdgeDocked class.
 /// </summary>
 /// <param name="name">Initial name of the element.</param>
 /// <param name="control">Reference to control that is being managed.</param>
 /// <param name="edge">Docking edge being managed.</param>
 public KryptonDockingEdgeDocked(string name, Control control, DockingEdge edge)
     : base(name)
 {
     Control          = control ?? throw new ArgumentNullException(nameof(control));
     Edge             = edge;
     _lookupSeparator = new SeparatorToDockspace();
     _lookupDockspace = new DockspaceToSeparator();
 }
        /// <summary>
        /// Initialize a new instance of the KryptonDockingEdgeDocked class.
        /// </summary>
        /// <param name="name">Initial name of the element.</param>
        /// <param name="control">Reference to control that is being managed.</param>
        /// <param name="edge">Docking edge being managed.</param>
        public KryptonDockingEdgeDocked(string name, Control control, DockingEdge edge)
            : base(name)
        {
            if (control == null)
            {
                throw new ArgumentNullException("control");
            }

            _control         = control;
            _edge            = edge;
            _lookupSeparator = new SeparatorToDockspace();
            _lookupDockspace = new DockspaceToSeparator();
        }