private void DockManager_PanelClosed(object sender,DockablePanelEventArgs e) { switch (e.ActivePanelKey) { case "kStockChannelQuery": stockChannelQueryIsOpen = false; App.DockManager.Remove("kStockChannelQuery"); App.HeaderControl.Remove(actionItem[0].Key); return; case "kScanQuery": stateManagerViewIsOpen=false; App.HeaderControl.Remove(actionItem[5].Key); App.HeaderControl.Remove(actionItem[6].Key); App.DockManager.Remove("kScanQuery"); return; case "kSortChannelQuery": sortChannelQueryIsOpen = false; App.HeaderControl.Remove(actionItem[1].Key); App.HeaderControl.Remove(actionItem[2].Key); App.DockManager.Remove("kSortChannelQuery"); return; case "kOrderStateQuery": orderQueryViewIsOpen = false; App.HeaderControl.Remove(actionItem[3].Key); App.HeaderControl.Remove(actionItem[4].Key); App.DockManager.Remove(AutomationContext.GetView<OrderStateQueryView>().Key); return; } }
void DockManager_ActivePanelChanged(object sender, DotSpatial.Controls.Docking.DockablePanelEventArgs e) { if (e.ActivePanelKey == kDataSheet) { App.DockManager.SelectPanel("datasheetSeriesView"); App.HeaderControl.SelectRoot(kDataSheet); } }
void DockManager_ActivePanelChanged(object sender, DotSpatial.Controls.Docking.DockablePanelEventArgs e) { if (e.ActivePanelKey == kIPyPrediction) { App.DockManager.SelectPanel("IpyPredSeriesView"); App.HeaderControl.SelectRoot(kIPyPrediction); } }
//event handler when a plugin is selected from tabs void DockManager_ActivePanelChanged(object sender, DotSpatial.Controls.Docking.DockablePanelEventArgs e) { if (e.ActivePanelKey == strPanelKey) { App.DockManager.SelectPanel(strPanelKey); App.HeaderControl.SelectRoot(strPanelKey); } }
void HM_Panel_Selected(object sender, DotSpatial.Controls.Docking.DockablePanelEventArgs e) { if (e.ActivePanelKey == kHydroModelerDock) { App.DockManager.SelectPanel("RootRibbonHydroModeler"); ignoreRootSelected = true; App.HeaderControl.SelectRoot(KHydroModeler); ignoreRootSelected = false; } }
void HM_Panel_Selected(object sender, DotSpatial.Controls.Docking.DockablePanelEventArgs e) { if (e.ActivePanelKey == kHydroModelerDock) { App.DockManager.SelectPanel("RootRibbonHydroModeler"); ignoreRootSelected = true; App.HeaderControl.SelectRoot(KHydroModeler); ignoreRootSelected = false; //hide panels App.DockManager.HidePanel("kLegend"); App.DockManager.HidePanel(HydroDesktop.Common.SharedConstants.SeriesViewKey); } }
protected virtual void OnPanelHidden(DockablePanelEventArgs ea) { if (PanelHidden != null) PanelHidden(this, ea); }
protected virtual void OnActivePanelChanged(DockablePanelEventArgs ea) { if (ActivePanelChanged != null) ActivePanelChanged(this, ea); }
protected virtual void OnPanelClosed(DockablePanelEventArgs ea) { if (PanelClosed != null) PanelClosed(this, ea); }
private void RaiseDockableEvent(EventHandler<DockablePanelEventArgs> handler, DockablePanelEventArgs ea) { if (handler != null) handler(this, ea); }
void DockManager_ActivePanelChanged(object sender, DockablePanelEventArgs e) { if (e.ActivePanelKey == strPanelKey) { App.DockManager.SelectPanel(strPanelKey); App.HeaderControl.SelectRoot(strPanelKey); //RefreshDatabasePath(); } }
/// <summary> /// Triggers the PanelAdded event. /// </summary> public virtual void OnPanelAdded(DockablePanelEventArgs ea) { if (PanelAdded != null) PanelAdded(null/*this*/, ea); }
protected virtual void OnPanelClosed(DockablePanelEventArgs ea) { RaiseDockableEvent(PanelClosed, ea); }
private void DockManager_ActivePanelChanged(object sender, DockablePanelEventArgs e) { if (e.ActivePanelKey == "kStockChannelQuery") { try { App.HeaderControl.Add((SimpleActionItem)actionItem[0]); } catch { } App.HeaderControl.SelectRoot("kStocking"); } else { App.HeaderControl.Remove(actionItem[0].Key); } if (e.ActivePanelKey == "kSortChannelQuery") { try { App.HeaderControl.Add((SimpleActionItem)actionItem[1]); App.HeaderControl.Add((SimpleActionItem)actionItem[2]); } catch { } App.HeaderControl.SelectRoot("kStocking"); } else { App.HeaderControl.Remove(actionItem[1].Key); App.HeaderControl.Remove(actionItem[2].Key); } if (e.ActivePanelKey == AutomationContext.GetView<OrderStateQueryView>().Key) { try { ((DropDownActionItem)actionItem[3]).Items.Clear(); ((DropDownActionItem)actionItem[3]).Items.AddRange(AutomationContext.GetView<OrderStateQueryView>().FindOrderStateList()); App.HeaderControl.Add((DropDownActionItem)actionItem[3]); App.HeaderControl.Add((SimpleActionItem)actionItem[4]); } catch { } App.HeaderControl.SelectRoot("kStocking"); } else { App.HeaderControl.Remove(actionItem[3].Key); App.HeaderControl.Remove(actionItem[4].Key); } if (e.ActivePanelKey == AutomationContext.GetView<ScanQueryView>().Key) { try { ((DropDownActionItem)actionItem[5]).Items.Clear(); ((DropDownActionItem)actionItem[5]).Items.AddRange(AutomationContext.GetView<ScanQueryView>().FindScannerListTable()); App.HeaderControl.Add((DropDownActionItem)actionItem[5]); App.HeaderControl.Add((SimpleActionItem)actionItem[6]); } catch { } App.HeaderControl.SelectRoot("kStocking"); } else { App.HeaderControl.Remove(actionItem[5].Key); App.HeaderControl.Remove(actionItem[6].Key); } }
/// <summary> /// Triggers the PanelRemoved event. /// </summary> public virtual void OnPanelHidden(DockablePanelEventArgs ea) { if (PanelHidden != null) PanelHidden(null/*this*/, ea); }
/// <summary> /// Triggers the ActivePanelChanged event. /// </summary> public virtual void OnActivePanelChanged(DockablePanelEventArgs ea) { if (ActivePanelChanged != null) ActivePanelChanged(null/*this*/, ea); }
protected virtual void OnActivePanelChanged(DockablePanelEventArgs ea) { RaiseDockableEvent(ActivePanelChanged, ea); }
private void DockManager_ActivePanelChanged(object sender, DockablePanelEventArgs e) { App.HeaderControl.SelectRoot("kHome"); }
protected virtual void OnPanelHidden(DockablePanelEventArgs ea) { RaiseDockableEvent(PanelHidden, ea); }