Example #1
0
        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);
     }
 }
Example #3
0
        /// <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;
        }
Example #4
0
        /// <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;
     }
 }
Example #6
0
        /// <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);
        }
Example #7
0
        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());
        }
Example #8
0
        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;
             }
         }
     }
 }
Example #10
0
        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);
                }
            }
        }
Example #11
0
        /// <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;
        }
Example #12
0
        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);
 }
Example #14
0
 private void dockManager_ClosedPanel(object sender, DockPanelEventArgs e)
 {
     e.Panel.Dispose();
 }
Example #15
0
 private void dockManager_ClosedPanel(object sender, DockPanelEventArgs e)
 {
     dockManager.RemovePanel(e.Panel);
 }
Example #16
0
        /// <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);
        }
Example #17
0
 void panelContainerTopVolumesAndTransaction_ClosedPanel(object sender, DockPanelEventArgs e)
 {
     transactionGridbarCheckItem.Checked = false;
     topVolumesbarCheckItem.Checked      = false;
 }
Example #18
0
 private void dockManager1_ClosedPanel(object sender, DockPanelEventArgs e)
 {
     SaveLayout();
 }
Example #19
0
 void watchListDockPanel_ClosedPanel(object sender, DockPanelEventArgs e)
 {
     watchListbarCheckItem.Checked = false;
 }
Example #20
0
 void topVolumesDockPanel_ClosedPanel(object sender, DockPanelEventArgs e)
 {
     topVolumesbarCheckItem.Checked = false;
 }
Example #21
0
 void dockManager_ClosedPanel(object sender, DockPanelEventArgs e)
 {
     OnPanelClosed(new DockablePanelEventArgs(e.Panel.Name));
 }
Example #22
0
        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);
            }
Example #24
0
        private void DockManager_UnregisterDockPanel(object sender, DockPanelEventArgs e)
        {
            string id = (e.Panel != null) ? e.Panel.Name : "null";

            LogDockManagerEvent("DockManager_UnregisterDockPanel " + id);
        }
Example #25
0
 void transactionGridDockPanel_ClosedPanel(object sender, DockPanelEventArgs e)
 {
     transactionGridbarCheckItem.Checked = false;
 }
Example #26
0
        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);
            }
        }
Example #27
0
 void dockManager_ClosedPanel(object sender, DockPanelEventArgs e) {
     Control module = GetPeekModuleControl(e.Panel);
     e.Panel.ControlContainer.Controls.Remove(module);
 }