Пример #1
0
 private void SaveName()
 {
     if (ClarifyManager.IsName(tbName.Text))
     {
         formManager.GetRootFormClass().AccessDBManager().UpdateUserName(USERConfig.EMAIL, tbName.Text);
         formManager.ShowTabBasicForm();
         formManager.ShowFindIdForm();
     }
     else
     {
         shakeControlAsync(tbName);
     }
 }
Пример #2
0
        private void CheckPassword(String input, String received)
        {
            //TextBox 입력된 암호 암호화 후 매칭 확인
            if (new EncryptTool().Encrypt(input).Equals(received))
            {
                tbPassword.Text    = received;
                tbPassword.Enabled = false;


                DataSet dataSet = formManager.GetRootFormClass().AccessDBManager().Select("User", "Email = '" + USERConfig.EMAIL + "'");
                DataRow datarow = dataSet.Tables[0].Rows[0];
                String  name    = datarow["Name"].ToString();

                if (name.Equals("") || name == null) //DB에 이름이 저장되어 있지 않다면 최초접속으로 가정하고 기본 정보를 받는 Form 으로 넘긴다
                {
                    formManager.ShowInitInformationForm();
                }
                else
                {
                    formManager.ShowTabBasicForm();
                }
            }
        }
Пример #3
0
        private async void btnClose_ClickAsync(object sender, EventArgs e)
        {
            await Task.Delay(150);

            formManager.ShowTabBasicForm();
        }
Пример #4
0
        private async void btnSettingSetting_Click(object sender, EventArgs e)
        {
            await Task.Delay(150);

            formManager.ShowTabBasicForm();
        }
Пример #5
0
 private void btnCancel_Click(object sender, EventArgs e)
 {
     formManager.ShowTabBasicForm();
 }