Beispiel #1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        ///
        /// </summary>
        /// ------------------------------------------------------------------------------------
        void OnDockUndockEnd(DockingEventArgs args)
        {
            if (DockUndockEnd != null)
            {
                DockUndockEnd(this, args);
            }

            m_dockState.Container.SizeChanged += HandleDockStateContainerSizeChanged;
        }
Beispiel #2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        ///
        /// </summary>
        /// ------------------------------------------------------------------------------------
        void OnDockUndockBegin(DockingEventArgs args)
        {
            m_dockState.Container.SizeChanged -= HandleDockStateContainerSizeChanged;

            if (DockUndockBegin != null)
            {
                DockUndockBegin(this, args);
            }
        }
		/// ------------------------------------------------------------------------------------
		/// <summary>
		///
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public override void OnDocking(object sender, DockingEventArgs e)
		{
			base.OnDocking(sender, e);

			int margin = (Floaty.DockMode == DockStyle.Top || Floaty.DockMode == DockStyle.Bottom ? 3 : 0);

			m_btnRunChecks.Left = margin;
			m_btnHelp.Margin = new Padding(m_btnHelp.Margin.Left,
				m_btnHelp.Margin.Top, margin, m_btnHelp.Margin.Bottom);

			RefreshHistoryPaneSize();
		}
		/// ------------------------------------------------------------------------------------
		/// <summary>
		///
		/// </summary>
		/// ------------------------------------------------------------------------------------
		protected override void OnDockUndockBegin(object sender, DockingEventArgs e)
		{
			ChecksViewWrapper wrapper = Parent as ChecksViewWrapper;
			bool initalActivation = (wrapper != null && wrapper.InitialActivation);

			if (m_persistence != null && !initalActivation)
				OnSaveSettings(m_persistence.SettingsKey);

			base.OnDockUndockBegin(sender, e);
		}
Beispiel #5
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Called after being docked to a side in the parent
		/// </summary>
		/// <param name="sender">The sender.</param>
		/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
		/// ------------------------------------------------------------------------------------
		public virtual void OnDocking(object sender, DockingEventArgs e)
		{
			if (Dock == DockStyle.Top)
			{
				// need to hide the tree
				Height = m_ToolStrip.Height;
				m_ComboBox.DropDownHeight = DropDownHeight;
				m_ComboBox.Visible = true;
				m_ComboBox.DropDownControl = Content;
				if (m_floaty != null)
					m_floaty.ShowSplitter = false;
			}
			else
			{
				m_ComboBox.Visible = false;
				if (Content != null)
				{
					Content.Show();
					Content.Dock = DockStyle.None;
					Content.Parent = this;
					Content.Dock = DockStyle.Fill;
					Content.BringToFront();
				}

				if (m_floaty != null)
					m_floaty.ShowSplitter = true;
			}
		}
Beispiel #6
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		///
		/// </summary>
		/// ------------------------------------------------------------------------------------
		private void m_floaty_Docking(object sender, DockingEventArgs e)
		{
			OnDocking(sender, e);
		}
Beispiel #7
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		///
		/// </summary>
		/// ------------------------------------------------------------------------------------
		protected virtual void OnDockUndockEnd(object sender, DockingEventArgs e)
		{
		}
Beispiel #8
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		///
		/// </summary>
		/// ------------------------------------------------------------------------------------
		protected virtual void OnDockUndockBegin(object sender, DockingEventArgs e)
		{
			// Only need the separator when docked to the top.
			if (m_sepShowOnlyAtTop != null)
				m_sepShowOnlyAtTop.Visible = (e.DockStyle == DockStyle.Top);
		}