コード例 #1
0
 private void ChocoMamboBMS_Load(object sender, EventArgs e)
 {
     frm_login frmlogin = new frm_login(this);
     frmlogin.MdiParent = this;
     frmlogin.Show();
     ms_main.Enabled = false;
     tsm_admin.Visible = false;
 }
コード例 #2
0
 private void tsmi_logout_Click(object sender, EventArgs e)
 {
     foreach (Form form in this.MdiChildren)
     {
         form.Close();
     }
     frm_login frmlogin = new frm_login(this);
     frmlogin.MdiParent = this;
     frmlogin.Show();
     ms_main.Enabled = false;
     tsm_admin.Visible = false;
 }