Пример #1
0
 private void ReceptionistForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     DataAccess.CloseConnection();
     LoginForm.GetLoginForm().Visible = true;
 }
Пример #2
0
 private void btnLogout_Click(object sender, EventArgs e)
 {
     DataAccess.CloseConnection(); // close the connection
     this.Close();
     LoginForm.GetLoginForm().Visible = true;
 }