void HeaderControl_RootItemSelected(object sender, RootItemEventArgs e) { if (e.SelectedRootKey == kDataSheet) { App.DockManager.SelectPanel(kDataSheet); } }
//a root item (plugin) has been selected void HeaderControl_RootItemSelected(object sender, RootItemEventArgs e) { if (e.SelectedRootKey == strPanelKey) { App.DockManager.SelectPanel(strPanelKey); } }
void HeaderControl_RootItemSelected(object sender, RootItemEventArgs e) { if (e.SelectedRootKey == kIPyPrediction) { App.DockManager.SelectPanel(kIPyPrediction); } }
//when the table root item is selected void HeaderControl_RootItemSelected(object sender, RootItemEventArgs e) { if (e.SelectedRootKey == kTableView) { App.DockManager.SelectPanel(kTableView); } }
void HeaderControl_RootItemSelected(object sender, RootItemEventArgs e) { if (e.SelectedRootKey == kPLSModel) { App.DockManager.SelectPanel(kPLSModel); } }
void HeaderControl_RootItemSelected(object sender, RootItemEventArgs e) { if (e.SelectedRootKey == kHydroSearch3) { App.SerializationManager.SetCustomSetting("SearchRootClicked", true); App.DockManager.SelectPanel("kMap"); } }
void HeaderControl_RootItemSelected(object sender, RootItemEventArgs e) { if (ignoreRootSelected) { return; } if (e.SelectedRootKey == "RootRibbonHydroModeler") { App.DockManager.SelectPanel(kHydroModelerDock); } }
//when the table root item is selected void HeaderControl_RootItemSelected(object sender, RootItemEventArgs e) { if (e.SelectedRootKey == kTableView) { App.DockManager.SelectPanel(kTableView); RefreshDatabasePath(); IsPanelActive = true; } else { IsPanelActive = false; } }
void HeaderControl_RootItemSelected(object sender, RootItemEventArgs e) { if (e.SelectedRootKey == _searchKey) { //App.DockManager.SelectPanel("kMap"); //searchSummary.ShowSearchStatus = true; //searchSummary.UpdateStatus(); } else { //searchSummary.ShowSearchStatus = false; } }
void HeaderControl_RootItemSelected(object sender, RootItemEventArgs e) { if (e.SelectedRootKey == HeaderControl.HomeRootItemKey) { App.DockManager.SelectPanel("kMap"); if (latLongDisplay != null) { this.latLongDisplay.ShowCoordinates = true; } } else { if (latLongDisplay != null) { latLongDisplay.ShowCoordinates = false; } } }
void HeaderControl_RootItemSelected(object sender, RootItemEventArgs e) { Boolean showCoordinates = false; if (e.SelectedRootKey == SharedConstants.SearchRootkey || e.SelectedRootKey == HeaderControl.HomeRootItemKey) { App.SerializationManager.SetCustomSetting("SearchRootClicked", true); App.DockManager.SelectPanel("kMap"); App.DockManager.SelectPanel("kLegend"); App.DockManager.ShowPanel(SharedConstants.SeriesViewKey); showCoordinates = true; } else if (e.SelectedRootKey == "RootRibbonHydroModeler") { //hide panels App.DockManager.HidePanel("kLegend"); App.DockManager.HidePanel(HydroDesktop.Common.SharedConstants.SeriesViewKey); App.DockManager.SelectPanel("kHydroModelerDock"); } else if (e.SelectedRootKey == "kHydroGraph_01" || e.SelectedRootKey == SharedConstants.TableRootKey || e.SelectedRootKey == "kHydroEditView" || e.SelectedRootKey == "kHydroR") { App.DockManager.SelectPanel(HydroDesktop.Common.SharedConstants.SeriesViewKey); App.DockManager.ShowPanel("kLegend"); } if (e.SelectedRootKey == "kHydroSearchV3") { showCoordinates = true; } else { App.SerializationManager.SetCustomSetting("SearchRootClicked", false); } if (latLongDisplay != null) { latLongDisplay.ShowCoordinates = showCoordinates; } }
private void RootItemSelected(object sender, RootItemEventArgs e) { var ext = App.GetExtension("DotSpatial.Plugins.AttributeDataExplorer"); if (ext == null) { return; } if (e.SelectedRootKey == "kHydroMetadata") { if (!ext.IsActive) { ext.Activate(); } } else { if (ext.IsActive) { ext.Deactivate(); } } }
void HeaderControl_RootItemSelected(object sender, RootItemEventArgs e) { /* if (ignoreRootSelected) return; * * if (e.SelectedRootKey == "RootRibbonHydroModeler") * { * App.DockManager.SelectPanel(kHydroModelerDock); * * //hide panels * App.DockManager.HidePanel("kLegend"); * App.DockManager.HidePanel(HydroDesktop.Common.SharedConstants.SeriesViewKey); * } * else if (e.SelectedRootKey == SharedConstants.SearchRootkey || e.SelectedRootKey == HeaderControl.HomeRootItemKey) * { * App.DockManager.SelectPanel("kLegend"); * App.DockManager.ShowPanel(HydroDesktop.Common.SharedConstants.SeriesViewKey); * } * else if (e.SelectedRootKey == "kHydroGraph_01" || e.SelectedRootKey == SharedConstants.TableRootKey || e.SelectedRootKey == "kHydroEditView" || e.SelectedRootKey == "kHydroR") * { * App.DockManager.SelectPanel(HydroDesktop.Common.SharedConstants.SeriesViewKey); * App.DockManager.ShowPanel("kLegend"); * } */ }