Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DbManager login = new DbManager();

            if (ControlCheck())
            {
                if (login.LoginCheck(textBox1.Text, textBox2.Text, out string proiroty))
                {
                    //string userName = textBox1.Text;
                    userinfo.priority = proiroty;
                    userinfo.UserName = textBox1.Text;

                    //loginEventHandler(userName);
                    DialogResult = DialogResult.OK;
                    Login    ls = this;
                    Man_Page mp = new Man_Page(userinfo, ls);
                    this.Visible = false;
                    timer1.Stop();
                    //mp.Passvalue = snstr;
                    mp.ShowDialog();
                }
                else
                {
                    MessageBox.Show("로그인 실패");
                    textBox1.Clear();
                    textBox2.Clear();
                }
                //emp_Regis ers = new emp_Regis(); // 인스턴스화(객체 생성)
                //ers.Passvalue = snstr;
                //Man_Page mp = new Man_Page();

                login.rdr.Close();
            }
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Man_Page  mp = this;
            emp_Regis f1 = new emp_Regis(mp, userInfo);

            f1.ShowDialog(this);

            /*            Man_Page mp = this;
             *          Detail_Page DP = new Detail_Page(mp);
             *          DP.Passvalue = id;  // 전달자(Passvalue)를 통해서 dp페이지로 전달
             *          DP.ShowDialog(this);*/
        }
Exemplo n.º 3
0
        private void button2_Click(object sender, EventArgs e)
        {
            int rowIndex = dataGridView1.CurrentRow.Index;

            string id = dataGridView1.SelectedRows[0].Cells[0].FormattedValue.ToString();

            //상세 정보 페이지에
            Man_Page    mp = this;
            Detail_Page DP = new Detail_Page(mp);

            DP.Passvalue = id;  // 전달자(Passvalue)를 통해서 dp페이지로 전달
            DP.ShowDialog(this);
        }
Exemplo n.º 4
0
 public Detail_Page(Man_Page _mp)
 {
     InitializeComponent();
     mp = _mp;
 }
Exemplo n.º 5
0
 public emp_Regis(Man_Page _mp, UserInfo _uinfo)
 {
     InitializeComponent();
     mp       = _mp;
     userInfo = _uinfo;
 }