private void FormAssetView_Load(object sender, EventArgs e) { SecureForm(); FormLoad(Settings.Default.ASSET_VIEW_IMAGE_KEY, Settings.Default.ASSET_VIEW_IMAGE_KEY_SELECTED); m_networkName = DBOp.GetNetworkName(m_networkID); TabText = "Asset View-" + m_networkName; Tag = "Asset View-" + m_networkName; labelAttribute.Text += " " + m_networkName; comboBoxRouteFacilty.Text = "All"; FillRouteTable(); ApplyFiltersToSectionGrid(); this.dgvSection.RowEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSection_RowEnter); this.comboBoxRouteFacilty.SelectedIndexChanged += new System.EventHandler(this.comboBoxRouteFacilty_SelectedIndexChanged); // Add to the FormManager FormManager.AddBaseForm(this); // Now create a new Asset Manager in the right dock panel on this form. assetManager = new AssetTab(m_networkName, m_hashAttributeYear); assetManager.Show(dpAssetDisplayContainer, DockState.DockRight); tabByAssetType = new TabByAssetType(assetManager, this); tabByAssetType.Show(dpAssetDisplayContainer, DockState.Document); tabAssetBySelection = new TabAssetBySelection(assetManager); tabAssetBySelection.Show(dpAssetDisplayContainer, DockState.Document); }
private void TabAssetBySelection_Enter(object sender, EventArgs e) { if (m_assetTab.IsHidden) { m_assetTab.Show(); } }
public static bool IsAssetTabOpen(out AssetTab assetTab) { if (m_assetTab != null) { assetTab = m_assetTab; m_assetTab.Show(); return(true); } else { assetTab = null; return(false); } }