// constructor
 public CreateEmployeeViewModel(CreateEmployeeView employeeOpen)
 {
     user               = new tblUser();
     worker             = new tblWorker();
     createEmployeeView = employeeOpen;
     SectorList         = GetAllSector();
     PositionList       = GetAllPosition();
 }
Example #2
0
        private void OpenCreateEmployeeView(object context)
        {
            CreateEmployeeView createEmployeeView = new CreateEmployeeView();
            var contextCreateEmployeeView         = (CreateEmployeeViewViewModel)createEmployeeView.DataContext;

            contextCreateEmployeeView.contextCreateProjectViewViewModel = this;
            contextCreateEmployeeView.SetDepartments();
            createEmployeeView.Show();
        }
        /// <summary>
        /// method for opening the view for creating employee
        /// </summary>
        private void CreateEmployeeExecute()
        {
            CreateEmployeeView employee = new CreateEmployeeView();

            employee.ShowDialog();
        }