Ejemplo n.º 1
0
 protected internal virtual void OnDockControlActivated(DockControlEventArgs e)
 {
     DockControlActivated?.Invoke(this, e);
     if (e.DockControl.DockSituation == DockSituation.Document)
         SetActiveTabbedDocument(e.DockControl);
 }
Ejemplo n.º 2
0
 protected virtual void OnDockControlRemoved(DockControlEventArgs e)
 {
     DockControlRemoved?.Invoke(this, e);
 }
Ejemplo n.º 3
0
		protected override void OnDockControlRemoved(DockControlEventArgs e)
		{
			if (e.DockControl is DockControl)
			{
				DockControl dockControl = (DockControl)e.DockControl;
				this.controls.Remove(dockControl.GetType(), dockControl.Key);
			}
			base.OnDockControlRemoved(e);
		}
Ejemplo n.º 4
0
		protected override void OnDockControlAdded(DockControlEventArgs e)
		{
			base.OnDockControlAdded(e);
		}
Ejemplo n.º 5
0
		private void DockManager_DockControlRemoved(object sender, DockControlEventArgs e)
		{
			if (!(e.DockControl is EditorWindow))
				return;
			this.editors.Remove((EditorKey)((FreeQuant.Docking.WinForms.DockControl)e.DockControl).Key);
		}
Ejemplo n.º 6
0
		private void DockManager_DockControlAdded(object sender, DockControlEventArgs e)
		{
			if (!(e.DockControl is EditorWindow))
				return;
			EditorWindow editorWindow = (EditorWindow)e.DockControl;
			this.editors.Add((EditorKey)(editorWindow.Key), editorWindow);
		}
Ejemplo n.º 7
0
		private void DockManager_DockControlActivated(object sender, DockControlEventArgs e)
		{
			EditorWindow editor = (EditorWindow)null;
			if (e.DockControl is EditorWindow)
				editor = (EditorWindow)e.DockControl;
			this.SetActiveEditor(editor);
		}