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(); } }
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);*/ }
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); }
public Detail_Page(Man_Page _mp) { InitializeComponent(); mp = _mp; }
public emp_Regis(Man_Page _mp, UserInfo _uinfo) { InitializeComponent(); mp = _mp; userInfo = _uinfo; }