Example #1
0
 private void 测试ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     UserLogin bf = new UserLogin();
     bf.DBLClass = Program._DBL_MAIN;
     bf.Parent = this.BodysplitContainer.Panel1;
     bf.Closed += new ClosedEventHandler(Item_Closed);
     bf.Show();
 }
Example #2
0
 //用户登录
 private void Login(bool reload=false )
 {
     if (reload)
     {
         Program._DBL_MAIN.LoadKey();
         Program._DBL_MAIN.LoadMessageList();
         Program._DBL_MAIN.LoadSqlCmdItems();
     }
     if (_CurrentItem != null)
     {
         this.BodysplitContainer.Panel1.Controls.Remove(_CurrentItem);
     }
     tabControl1.TabPages.Clear();
     hide_menu();
     _login = SubWindowsOnTableModels;
     SubWindowsOnTableModels = false;
     tabControl1.Visible = false;
     UserLogin fbp = new UserLogin();
     fbp.Parent = this.BodysplitContainer.Panel1;
     _CurrentItem = fbp;
     fbp.Closed += new ClosedEventHandler(fbp_Closed);
     fbp.DBLClass = Program._DBL_MAIN;
     fbp.Show();
     窗体模式ToolStripMenuItem.Checked = SubWindowsOnTableModels;
 }