예제 #1
0
파일: Form1.cs 프로젝트: maib/bluepillstudy
 private void btnEnlist_Click(object sender, EventArgs e)
 {
     //Step 1.Show the authentication window
     FrmAuthentication authWnd = new FrmAuthentication();
     authWnd.OnFinish += new FrmAuthentication.EventHandler(authWnd_OnFinish);
     authWnd.Show(this);
     
 }
예제 #2
0
파일: Form1.cs 프로젝트: xdel/bluepillstudy
        private void btnEnlist_Click(object sender, EventArgs e)
        {
            //Step 1.Show the authentication window
            FrmAuthentication authWnd = new FrmAuthentication();

            authWnd.OnFinish += new FrmAuthentication.EventHandler(authWnd_OnFinish);
            authWnd.Show(this);
        }
예제 #3
0
파일: Form1.cs 프로젝트: xdel/bluepillstudy
        private void authWnd_OnFinish(object sender, EventArgs e)
        {
            FrmAuthentication authWnd = (FrmAuthentication)sender;

            if (authWnd.IsOK)
            {
                //Step 2. Start to enlist.
                this.password    = authWnd.Password;
                this.accountName = authWnd.AccountName;
                Enlist();
                //Step 3. Finialize
                this.Dispose();
            }
        }