private void dockManager1_ClosedPanel(object sender, DockPanelEventArgs e) { DockManager dockManager = sender as DockManager; DockPanel panel = e.Panel; dockManager.RemovePanel(panel); }
private void OnDockManagerRegisterDockPanel(object sender, DockPanelEventArgs e) { if (e.Panel.Name.Contains("panelContainer")) { e.Panel.ActiveChildChanged += new DockPanelEventHandler(OnDockPanelActiveChildChanged); AdjustCloseButtonVisibility(e.Panel); } }
/// <summary> /// If Dod panel closed indicate so in the page view /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DetailsOnDemandDockPanel_ClosedPanel(object sender, DockPanelEventArgs e) { if (UIMisc.InSetup) { return; } ResultsPage.ShowDetailsOnDemand = false; }
/// <summary> /// If Filters panel closed indicate so in the page view /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void FiltersDockPanel_ClosedPanel(object sender, DockPanelEventArgs e) { if (UIMisc.InSetup) { return; } ResultsPage.ShowFilterPanel = false; }
void customDockManager1_RegisterDockPanel(object sender, DockPanelEventArgs e) { //throw new NotImplementedException(); //if (e.Panel==pane) if (e.Panel.Text.Contains("container")) { parentPanel = e.Panel as CustomDockPanel; } }
/// <summary> /// DockManager_ActiveChildChanged /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DockManager_ActiveChildChanged(object sender, DockPanelEventArgs e) { if (ResultsPagePanel == null || UIMisc.InSetup) { return; } string id = (e.Panel != null) ? e.Panel.Name : "null"; LogDockManagerEvent("DockManager_ActiveChildChanged " + id); }
void OnTabbedChanged(object sender, DockPanelEventArgs e) { DockPanel panel = e.Panel; IdentKey key = panel.Tag as IdentKey; IView view = null; if (key == null || !_views.TryGetValue(key, out view)) { return; } _logger.Debug("OnTabbedChanged event. " + view.ToString()); }
void OnClosedPanel(object sender, DockPanelEventArgs e) { DockPanel panel = e.Panel; IdentKey key = panel.Tag as IdentKey; IView view = null; if (key == null || !_views.TryGetValue(key, out view)) { return; } view.OnAfterClose(); _logger.Debug("OnClosedPanel event. " + view.ToString()); }
private void DockPanel_ClosedPanel(object sender, DockPanelEventArgs e) { if (sender != null && sender is DockPanel) { foreach (KeyValuePair <Control, DockPanel> kvp in DockPanels) { if (kvp.Value == sender) { kvp.Key.Dispose(); break; } } } }
void ABCDockManager_RegisterDockPanel(object sender, DockPanelEventArgs e) { if (this.DesignMode) { foreach (Component comp in this.Container.Components) { if (comp == e.Panel) { return; } } this.Container.Add(e.Panel); if (e.Panel.ControlContainer != null) { this.Container.Add(e.Panel.ControlContainer); } } }
/// <summary> /// DockPanel closed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ViewDockPanel_ClosedPanel(object sender, DockPanelEventArgs e) { DockPanel dp = sender as DockPanel; if (dp == null) { return; } ViewManager vm = dp.Tag as ViewManager; if (vm == null) { return; } ResultsPage.RemoveView(vm); // remove the view from the page return; }
private void DockVisibilityChanged(object sender, DockVisibilityChangedEventArgs arg) { if (!_dict.ContainsKey(arg.Control)) { throw new ApplicationException("Invalid docking panel control"); } var panel = GetDockPanel(arg.Control); var info = _dict[arg.Control]; var args = new DockPanelEventArgs(panel, info.Key); if (panel.Visible) { _broadcaster.BroadcastEvent(p => p.DockPanelOpened_, panel, args, info.Identity); } else { _broadcaster.BroadcastEvent(p => p.DockPanelClosed_, panel, args, info.Identity); } }
private void OnDockPanelActiveChildChanged(object sender, DockPanelEventArgs e) { AdjustCloseButtonVisibility(e.Panel); }
private void dockManager_ClosedPanel(object sender, DockPanelEventArgs e) { e.Panel.Dispose(); }
private void dockManager_ClosedPanel(object sender, DockPanelEventArgs e) { dockManager.RemovePanel(e.Panel); }
/// <summary> /// DockManager_TabbedChanged - Changed to tabbed/not tabbed state /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DockManager_TabbedChanged(object sender, DockPanelEventArgs e) { string id = (e.Panel != null) ? e.Panel.Name : "null"; LogDockManagerEvent("DockManager_TabbedChanged " + id); }
void panelContainerTopVolumesAndTransaction_ClosedPanel(object sender, DockPanelEventArgs e) { transactionGridbarCheckItem.Checked = false; topVolumesbarCheckItem.Checked = false; }
private void dockManager1_ClosedPanel(object sender, DockPanelEventArgs e) { SaveLayout(); }
void watchListDockPanel_ClosedPanel(object sender, DockPanelEventArgs e) { watchListbarCheckItem.Checked = false; }
void topVolumesDockPanel_ClosedPanel(object sender, DockPanelEventArgs e) { topVolumesbarCheckItem.Checked = false; }
void dockManager_ClosedPanel(object sender, DockPanelEventArgs e) { OnPanelClosed(new DockablePanelEventArgs(e.Panel.Name)); }
void dockPanel_ClosedPanel(object sender, DockPanelEventArgs e) { // force close of the file that the hexviewer had open! if (sender is DockPanel) { DockPanel pnl = (DockPanel)sender; foreach (Control c in pnl.Controls) { if (c is HexViewer) { HexViewer vwr = (HexViewer)c; vwr.CloseFile(); } else if (c is ctrlCompressorMapEx) { ctrlCompressorMapEx plot = (ctrlCompressorMapEx)c; plot.ReleaseResources(); } else if (c is DevExpress.XtraBars.Docking.DockPanel) { DevExpress.XtraBars.Docking.DockPanel tpnl = (DevExpress.XtraBars.Docking.DockPanel)c; foreach (Control c2 in tpnl.Controls) { if (c2 is HexViewer) { HexViewer vwr2 = (HexViewer)c2; vwr2.CloseFile(); } else if (c2 is ctrlCompressorMapEx) { ctrlCompressorMapEx plot = (ctrlCompressorMapEx)c2; plot.ReleaseResources(); } } } else if (c is DevExpress.XtraBars.Docking.ControlContainer) { DevExpress.XtraBars.Docking.ControlContainer cntr = (DevExpress.XtraBars.Docking.ControlContainer)c; foreach (Control c3 in cntr.Controls) { if (c3 is HexViewer) { HexViewer vwr3 = (HexViewer)c3; vwr3.CloseFile(); } else if (c3 is ctrlCompressorMapEx) { ctrlCompressorMapEx plot = (ctrlCompressorMapEx)c3; plot.ReleaseResources(); } } } } // remove the panel from the dockmanager dockManager1.RemovePanel(pnl); } }
void dockManager_ClosedPanel(object sender, DockPanelEventArgs e) { Control module = GetPeekModuleControl(e.Panel); e.Panel.ControlContainer.Controls.Remove(module); }
private void DockManager_UnregisterDockPanel(object sender, DockPanelEventArgs e) { string id = (e.Panel != null) ? e.Panel.Name : "null"; LogDockManagerEvent("DockManager_UnregisterDockPanel " + id); }
void transactionGridDockPanel_ClosedPanel(object sender, DockPanelEventArgs e) { transactionGridbarCheckItem.Checked = false; }
void dockPanel_ClosedPanel(object sender, DockPanelEventArgs e) { // force close of the file that the hexviewer had open! if (sender is DockPanel) { DockPanel pnl = (DockPanel)sender; foreach (Control c in pnl.Controls) { if (c is HexViewer) { HexViewer vwr = (HexViewer)c; vwr.CloseFile(); //UpdateChecksum(m_currentfile); } else if (c is DockPanel) { DockPanel tpnl = (DockPanel)c; foreach (Control c2 in tpnl.Controls) { if (c2 is HexViewer) { HexViewer vwr2 = (HexViewer)c2; vwr2.CloseFile(); //UpdateChecksum(m_currentfile); } } } else if (c is ControlContainer) { ControlContainer cntr = (ControlContainer)c; foreach (Control c3 in cntr.Controls) { if (c3 is HexViewer) { HexViewer vwr3 = (HexViewer)c3; vwr3.CloseFile(); //UpdateChecksum(m_currentfile); } } } } // remove the panel from the dockmanager dockManager1.RemovePanel(pnl); } }