Exemplo n.º 1
0
        public EmployeeViewModel()
        {
            ThePosition = new Position();
            TheEmployee = new Employee();


            _poclog            = new PositionLogic();
            _emplog            = new EmployeeLogic();
            ThePerson          = new Person();
            ThePerson          = null;
            _perlog            = new PersonLogic();
            PositionCollection = new ObservableCollection <Position>(_poclog.Get());
            PersonCollection   = new ObservableCollection <Person>(_emplog.GetPersonWithNull());
            EmployeeCollection = new ObservableCollection <Employee>(_emplog.Get());
        }
Exemplo n.º 2
0
 private void ShowPositions()
 {
     positionBindingSource.DataSource = null;
     positionBindingSource.DataSource = PositionLogic.Get();
 }
Exemplo n.º 3
0
 private void RefreshCollection()
 {
     PositionCollection = new ObservableCollection <Position>(_poclog.Get());
 }
Exemplo n.º 4
0
 public PositionViewModel()
 {
     ThePosition        = new Position();
     _poclog            = new PositionLogic();
     PositionCollection = new ObservableCollection <Position>(_poclog.Get());
 }
Exemplo n.º 5
0
 private void RefreshEmployeeCollection()
 {
     EmployeeCollection = new ObservableCollection <Employee>(_emplog.Get());
     PositionCollection = new ObservableCollection <Position>(_poclog.Get());
     PersonCollection   = new ObservableCollection <Person>(_emplog.GetPersonWithNull());
 }