Esempio n. 1
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="T:FwSplitContainer"/> class.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public FwSplitContainer()
		{
			InitializeComponent();

			SplitterMoving += new SplitterCancelEventHandler(OnSplitterMoving);
			SplitterMoved += new SplitterEventHandler(OnSplitterMoved);
		}
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// splittercanceleventhandler.BeginInvoke(sender, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this SplitterCancelEventHandler splittercanceleventhandler, Object sender, SplitterCancelEventArgs e, AsyncCallback callback)
        {
            if (splittercanceleventhandler == null)
            {
                throw new ArgumentNullException("splittercanceleventhandler");
            }

            return(splittercanceleventhandler.BeginInvoke(sender, e, callback, null));
        }
Esempio n. 3
0
        public void OnSplitterMoving(SplitterCancelEventArgs e)
        {
            SplitterCancelEventHandler eh = (SplitterCancelEventHandler)(Events [SplitterMovingEvent]);

            if (eh != null)
            {
                eh(this, e);
            }
        }
Esempio n. 4
0
        protected virtual void OnSplitterMoving(SplitterCancelEventArgs e)
        {
            SplitterCancelEventHandler handler1 = (SplitterCancelEventHandler)base.Events[RadSplitContainer.SplitterMovingEventKey];

            if (handler1 != null)
            {
                handler1(this, e);
            }

            if (this.Parent is RadSplitContainer)
            {
                ((RadSplitContainer)this.Parent).OnSplitterMoving(e);
            }
        }
Esempio n. 5
0
        public DoubleClickSplitter()
        {
            InitializeComponent();

            SplitterMoving += new SplitterCancelEventHandler(OnSplitterMoving);
        }
        public DoubleClickSplitter()
        {
            InitializeComponent();

            SplitterMoving += new SplitterCancelEventHandler(OnSplitterMoving);
        }