Close the form upon adding a school.
This commit is contained in:
parent
90c2b7629f
commit
803ffca11b
@ -66,6 +66,9 @@ namespace DBWizard
|
|||||||
//Display a friendly message and cleanup the textbox for any new entry.
|
//Display a friendly message and cleanup the textbox for any new entry.
|
||||||
MessageBox.Show("School added to the database.", "KentYouthDB", MessageBoxButtons.OK, MessageBoxIcon.None);
|
MessageBox.Show("School added to the database.", "KentYouthDB", MessageBoxButtons.OK, MessageBoxIcon.None);
|
||||||
schoolNameTextBox.Text = string.Empty;
|
schoolNameTextBox.Text = string.Empty;
|
||||||
|
|
||||||
|
//Close the form.
|
||||||
|
Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user