示例#1
0
        private void constructTabPage( int nIndex, baseUsrTab tab )
        {
            _tabs[nIndex] = tab;

            tab._fImport = _fImport;
            tab.Execute += new EventHandler(tab_Execute);
            tab.SetOK += new EventHandler(tab_SetOK);
            tab.SelectionChanged += new EventHandler(tab_SelectionChanged);
            TabPage tp = new TabPage( tab.Text );
            tp.ImageIndex = nIndex;
            tabVal.TabPages.Add( tp );
            tp.Controls.Add( tab );
            tab.Dock = DockStyle.Fill;
        }
示例#2
0
 private void tabVal_SelectedIndexChanged(object sender, System.EventArgs e)
 {
     _tabActive = _tabs[tabVal.SelectedIndex];
     _tabActive.activate();
     cmdOK.Enabled = _tabActive.isOK;
 }
示例#3
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad (e);
            _tabActive = _tabs[tabVal.SelectedIndex];
            _tabActive.Focus();
            _tabActive.activate();

            if ( Global.Fotografdator )
                new GetManagementObject(
                    this,
                    new GetManagementObject.ManagementClassFound(checkDiskSpace),
                    Global.Preferences.MainPath );
        }