Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public static bool IsAssetTabOpen(out AssetTab assetTab)
 {
     if (m_assetTab != null)
     {
         assetTab = m_assetTab;
         m_assetTab.Show();
         return(true);
     }
     else
     {
         assetTab = null;
         return(false);
     }
 }
Esempio n. 3
0
 public static void AddAssetTab(AssetTab form)
 {
     m_assetTab = form;
 }
Esempio n. 4
0
 public static void RemoveAssetTab(AssetTab form)
 {
     m_assetTab.Dispose();
     m_assetTab = null;
 }
Esempio n. 5
0
 public TabAssetBySelection(AssetTab assetTab)
 {
     InitializeComponent();
     m_assetTab = assetTab;
 }
Esempio n. 6
0
 public TabByAssetType(AssetTab assetTab, FormAssetView formAsssetView)
 {
     InitializeComponent();
     m_assetTab      = assetTab;
     m_formAssetView = formAsssetView;
 }