Esempio n. 1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            Log_Convert("UI", "OK Button Click");
            switch (cmbOperator.SelectedIndex)
            {
            case 0:
                break;

            case 1:
                if (newPassWord == prevPassWord)
                {
                    UIMode       = true;
                    prevPassWord = newPassWord;
                    //Todo:
                    //저장소에 저장해야함.
                }
                else
                {
                    frmConfirm confirm = new frmConfirm();
                    if (string.IsNullOrEmpty(newPassWord))
                    {
                        confirm.SetContent("UI Mode", "PASSWORD INPUT PLEASE");
                    }
                    else
                    {
                        confirm.SetContent("UI Mode", "PASSWORD NOT MATCHED");
                    }
                    confirm.ShowDialog(this);

                    UIMode = false;
                }
                break;
            }
            this.Hide();
        }
Esempio n. 2
0
 private void btnIn_Click(object sender, EventArgs e)
 {
     Log_Convert("UI", "IN Button Click");
     if (txtPassword.Text != "")
     {
         newPassWord = txtPassword.Text;
     }
     else
     {
         frmConfirm confirm = new frmConfirm();
         confirm.SetContent("UI Mode", "PASSWORD DATA INPUT PLEASE");
         confirm.ShowDialog(this);
     }
 }