Ejemplo n.º 1
0
        /// <summary>
        /// Initialize a new instance of the KryptonDockingNavigator class.
        /// </summary>
        /// <param name="name">Initial name of the element.</param>
        /// <param name="storeName">Name to use for storage pages.</param>
        /// <param name="navigator">Reference to navigator to manage.</param>
        public KryptonDockingNavigator(string name,
                                       string storeName,
                                       KryptonDockableNavigator navigator)
            : base(name)
        {
            if (navigator == null)
            {
                throw new ArgumentNullException("navigator");
            }

            _storeName = storeName;
            _navigator = navigator;

            DockableNavigatorControl.Disposed          += new EventHandler(OnDockableNavigatorDisposed);
            DockableNavigatorControl.CellPageInserting += new EventHandler <KryptonPageEventArgs>(OnDockableNavigatorPageInserting);
            DockableNavigatorControl.BeforePageDrag    += new EventHandler <PageDragCancelEventArgs>(OnDockableNavigatorBeforePageDrag);
            DockableNavigatorControl.PageDrop          += new EventHandler <PageDropEventArgs>(OnDockableNavigatorPageDrop);
        }
 /// <summary>
 /// Initialize a new instance of the DockableNavigatorEventArgs class.
 /// </summary>
 /// <param name="navigator">Reference to dockable navigator control instance.</param>
 /// <param name="element">Reference to docking navigator element that is managing the dockable workspace control.</param>
 public DockableNavigatorEventArgs(KryptonDockableNavigator navigator,
                                   KryptonDockingNavigator element)
 {
     _navigator = navigator;
     _element   = element;
 }