예제 #1
0
 private void login_btn_Click(object sender, EventArgs e)
 {
     Forms.LoginForm loginForm = new Forms.LoginForm();
     loginForm.VisibleChanged += delegate(object source, EventArgs args)
     {
         if (!loginForm.Visible)
         {
             this.Show();
         }
     };
     loginForm.Show();
 }
예제 #2
0
파일: mainForm.cs 프로젝트: N3GUF/CPTools
 private void formMain_Shown(object sender, EventArgs e)
 {
     Forms.LoginForm loginForm = new Forms.LoginForm();
     loginForm.Show(this);
 }