Ejemplo n.º 1
0
        public AddEmployee(IEmployeeStorable employeeStorable)
        {
            _storage = employeeStorable;
            InitializeComponent();

            dateTimePickerAddEmplEmploymentDate.Value = DateTime.Now;
        }
Ejemplo n.º 2
0
        public EmployeeManager(IEmployeeStorable employeeStorable)
        {
            _storage = employeeStorable;

            _storage.AddEmployee(addElement.AddEmployee("Jacek", "Kowalski", "505 247 018", "54 288 3642", "*****@*****.**", "koordynator", 5650, new DateTime(2006, 03, 04)));
            _storage.AddEmployee(addElement.AddEmployee("Józef", "Gołębiewski", "608 313 123", "54 287 4553", "*****@*****.**", "sprzedawca", 2450, new DateTime(2001, 01, 23)));
            _storage.AddEmployee(addElement.AddEmployee("Adrian", "Nawrocki", "504 347 035", "54 287 6527", "*****@*****.**", "Kasjer", 3650, new DateTime(2000, 03, 04)));
            _storage.AddEmployee(addElement.AddEmployee("Lech", "Siarczyński", "502 079 123", "55 289 3764", "*****@*****.**", "sprzedawca", 2650, new DateTime(1999, 12, 12)));
            _storage.AddEmployee(addElement.AddEmployee("Jan", "Nowak", "505 333 555", "55 288 1134", "*****@*****.**", "koordynator", 6650, new DateTime(2004, 05, 04)));
            _storage.AddEmployee(addElement.AddEmployee("Alojzy", "Szpener", "607 112 223", "54 287 0078", "*****@*****.**", "sprzedawca", 2750, new DateTime(2010, 09, 08)));

            InitializeComponent();
        }
Ejemplo n.º 3
0
 public EditEmployee(IEmployeeStorable storage, Models.Employee employee)
 {
     _employee = employee;
     _storage = storage;
     InitializeComponent();
 }