private void btnEdit_Click(object sender, EventArgs e) { if(this.tabControl1.SelectedTab == this.tabPage1) { SignUp su = new SignUp(this,dgvAdmin.CurrentRow); su.Show(); this.Hide(); } else { SignUp su = new SignUp(this, dgvReader.CurrentRow); su.Show(); this.Hide(); } }
private void btnSignUp_Click_1(object sender, EventArgs e) { SignUp signUp = new SignUp(this); this.Hide(); signUp.Show(); }