Example #1
0
 private void closepb_Click(object sender, EventArgs e)
 {
     Presentation_Layer.Alerts.OkCancel_Dialog dialog = new Presentation_Layer.Alerts.OkCancel_Dialog();
     dialog.ShowDialog(this);
     dialog.messagelbl.Text = "Seguro quieres salir del Sistema";
     if (dialog.DialogResult.Equals(DialogResult.OK))
     {
         Application.Exit();
     }
 }
Example #2
0
 private void logoutbtn_Click(object sender, EventArgs e)
 {
     Presentation_Layer.Alerts.OkCancel_Dialog dialog = new Presentation_Layer.Alerts.OkCancel_Dialog();
     dialog.ShowDialog(this);
     dialog.messagelbl.Text = "Seguro quieres Cerrar Sesion?";
     if (dialog.DialogResult.Equals(DialogResult.OK))
     {
         linq.Update_InactiveUser(usernamelbl.Text);
         Login l = new Login();
         l.Show();
         this.Hide();
     }
 }