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;
     }
 }
示例#2
0
 void DockManager_ActivePanelChanged(object sender, DotSpatial.Controls.Docking.DockablePanelEventArgs e)
 {
     if (e.ActivePanelKey == kDataSheet)
     {
         App.DockManager.SelectPanel("datasheetSeriesView");
         App.HeaderControl.SelectRoot(kDataSheet);
     }
 }
示例#3
0
 void DockManager_ActivePanelChanged(object sender, DotSpatial.Controls.Docking.DockablePanelEventArgs e)
 {
     if (e.ActivePanelKey == kIPyPrediction)
     {
         App.DockManager.SelectPanel("IpyPredSeriesView");
         App.HeaderControl.SelectRoot(kIPyPrediction);
     }
 }
示例#4
0
 //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);
     }
 }
示例#5
0
 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;
     }
 }
示例#6
0
        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);
            }
        }
示例#7
0
 protected virtual void OnPanelHidden(DockablePanelEventArgs ea)
 {
     if (PanelHidden != null)
         PanelHidden(this, ea);
 }
示例#8
0
 protected virtual void OnActivePanelChanged(DockablePanelEventArgs ea)
 {
     if (ActivePanelChanged != null)
         ActivePanelChanged(this, ea);
 }
示例#9
0
 protected virtual void OnPanelClosed(DockablePanelEventArgs ea)
 {
     if (PanelClosed != null)
         PanelClosed(this, ea);
 }
示例#10
0
 private void RaiseDockableEvent(EventHandler<DockablePanelEventArgs> handler, DockablePanelEventArgs ea)
 {
     if (handler != null)
         handler(this, ea);
 }
示例#11
0
 void DockManager_ActivePanelChanged(object sender, DockablePanelEventArgs e)
 {
     if (e.ActivePanelKey == strPanelKey)
     {
         App.DockManager.SelectPanel(strPanelKey);
         App.HeaderControl.SelectRoot(strPanelKey);
        //RefreshDatabasePath();
     }
 }
示例#12
0
 /// <summary>
 /// Triggers the PanelAdded event.
 /// </summary>
 public virtual void OnPanelAdded(DockablePanelEventArgs ea)
 {
     if (PanelAdded != null)
         PanelAdded(null/*this*/, ea);
 }
示例#13
0
 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);
     }
 }
示例#15
0
 /// <summary>
 /// Triggers the PanelRemoved event.
 /// </summary>
 public virtual void OnPanelHidden(DockablePanelEventArgs ea)
 {
     if (PanelHidden != null)
         PanelHidden(null/*this*/, ea);
 }
示例#16
0
 /// <summary>
 /// Triggers the ActivePanelChanged event.
 /// </summary>
 public virtual void OnActivePanelChanged(DockablePanelEventArgs ea)
 {
     if (ActivePanelChanged != null)
         ActivePanelChanged(null/*this*/, ea);
 }
示例#17
0
 protected virtual void OnActivePanelChanged(DockablePanelEventArgs ea)
 {
     RaiseDockableEvent(ActivePanelChanged, ea);
 }
示例#18
0
 private void DockManager_ActivePanelChanged(object sender, DockablePanelEventArgs e)
 {
     App.HeaderControl.SelectRoot("kHome");
 }
示例#19
0
 protected virtual void OnPanelHidden(DockablePanelEventArgs ea)
 {
     RaiseDockableEvent(PanelHidden, ea);
 }