finished db3
This commit is contained in:
parent
d9dcf41695
commit
e96d4459e3
@ -7,15 +7,18 @@ namespace Database3
|
||||
{
|
||||
public partial class frmEdit : Form
|
||||
{
|
||||
public frmEdit()
|
||||
|
||||
private frmSearch forminstance;
|
||||
public frmEdit(frmSearch there)
|
||||
{
|
||||
InitializeComponent();
|
||||
forminstance = there;
|
||||
}
|
||||
|
||||
private void Form_Closing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
|
||||
frmSearch.btnSearch_Click(sender, e);
|
||||
forminstance.btnSearch_Click(sender, e);
|
||||
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ namespace Database3
|
||||
if (dgvStudents.Rows.Count > 0)
|
||||
{
|
||||
DataGridViewRow row = dgvStudents.SelectedRows[0];
|
||||
frmEdit aform = new frmEdit();
|
||||
frmEdit aform = new frmEdit(this);
|
||||
|
||||
studentid = row.Cells[0].Value.ToString().Trim();
|
||||
myID = studentid;
|
||||
|
Loading…
Reference in New Issue
Block a user