Exemple #1
0
        private void connect_Click(object sender, EventArgs e)
        {
            _Login db = new _Login();

            if (db.Login(idbox.Text, pwbox.Text) == true)
            {
                if (idsave_check.Checked == true)
                {
                    reg.Set_ID_Registry(idbox.Text);
                    reg.Set_Savecheck_Registry(true);
                }
                this.erpMain.Enabled              = true;
                this.erpMain.statusTimer.Enabled  = true;
                this.erpMain.status.Items[1].Text = "현재 로그인 아이디: " + idbox.Text;
                this.Close();
                this.Dispose();
            }
            else
            {
                _Common common = new _Common();
                common.MsgboxShow("아이디/비밀번호가 맞지 않습니다.");
            }
        }