Example #1
0
        public void SignUpInfo(DataTable mytable, string str, int mode)
        {
            DataRow[] foundRows = mytable.Select(str);
            int       count     = 0;

            foreach (DataRow mydataRow in foundRows)
            {
                this.Visible = false;
                switch (mode)
                {
                case 0:
                    FormConsuMode searchFrm = new FormConsuMode(this, textBoxID.Text);
                    searchFrm.Owner = this;
                    searchFrm.Show();
                    break;

                case 1:
                    FormEmployMode employFrm = new FormEmployMode(this, textBoxID.Text);
                    employFrm.Owner = this;
                    employFrm.Show();
                    break;

                case 2:
                    FormAdminMode adminFrm = new FormAdminMode(this);
                    adminFrm.Owner = this;
                    adminFrm.Show();
                    break;
                }
                count++;
            }
            if (count == 0)
            {
                MessageBox.Show("아이디 또는 비밀번호를 잘못 입력하셨습니다.\n아이디/비밀번호 찾기를 이용해보세요.");
            }
        }
        private void pictureBox3_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            FormConsuMode frm = new FormConsuMode(mainform, id);

            frm.Owner = this;
            frm.Show();
            frm.Activate();
        }