Ejemplo n.º 1
0
        public bool isEditMode; /*{ get; set; }*/

        public CreateUser(ManageEmployeeRecords manageEmployeeListing = null)
        {
            InitializeComponent();
            lblTitle.Text          = "Add New Employee";
            this.Text              = "Add New Employee";
            isEditMode             = false;
            _manageEmployeeListing = manageEmployeeListing;
            _db = new HRMSEntities2();
        }
Ejemplo n.º 2
0
 public CreateUser(Employee staffToEdit, ManageEmployeeRecords manageEmployeeListing = null)
 {
     InitializeComponent();
     lblTitle.Text          = "Edit Employee";
     this.Text              = "Edit Employee";
     _db                    = new HRMSEntities2();
     _manageEmployeeListing = manageEmployeeListing;
     if (staffToEdit == null)
     {
         MessageBox.Show("Please ensure that you selected a valid record to edit");
         Close();
     }
     else
     {
         isEditMode = true;
         _db        = new HRMSEntities2();
         PopulateFields(staffToEdit);
     }
 }
Ejemplo n.º 3
0
 public ManageUsers()
 {
     InitializeComponent();
     _db = new HRMSEntities2();
 }
Ejemplo n.º 4
0
 public ResetPassword(User user)
 {
     InitializeComponent();
     _db   = new HRMSEntities2();
     _user = user;
 }
Ejemplo n.º 5
0
 public Login()
 {
     InitializeComponent();
     _Db = new HRMSEntities2();
 }
        //private object lblTitle;

        //private CreateUser  _CreateUser;
        public ManageEmployeeRecords()
        {
            InitializeComponent();
            _db = new HRMSEntities2();
        }
Ejemplo n.º 7
0
 public AddUser(ManageUsers manageUsers)
 {
     InitializeComponent();
     _db          = new HRMSEntities2();
     _manageUsers = manageUsers;
 }