private void All() { try { DGVEmployee.DataSource = employeeModel.All(); } catch (Exception Ex) { PBLog.Save(this, Ex); } }
private void TBFilter_KeyUp(object sender, KeyEventArgs e) { try { DGVEmployee.DataSource = employeeModel.Filter(TBFilter.Text); } catch (Exception Ex) { PBLog.Save(this, Ex); } }
private void Login() { try { if (TBUsername.Text != "") { if (TBPassword.Text != "") { if (employeeModel.Login(TBUsername.Text, Helpers.SHA1(TBPassword.Text))) { FormMain Frm = new FormMain(); Frm.Show(); Hide(); } else { Msg("Usuario y/o contraseƱa incorrecta. \npor favor vuelve a intentarlo."); } } else { Msg("Ingresa tu contraseƱa!"); TBPassword.Focus(); } } else { Msg("Ingresa tu Usuario"); TBUsername.Focus(); } } catch (Exception er) { PBLog.Save(this, er); } }