public void UpdateEmployeeReferenece(object obj)
 {
     try
     {
         CoreFactory.GetInstance().EmployeeBusinessLogic.UpdateEmployee(this.EmployeeObj);
         NotificationService.ShowInformationMessage("Record has been updated");
     }
     catch (System.Exception e)
     {
         NotificationService.ShowErrorMessage(e.Message);
     }
 }
Ejemplo n.º 2
0
        void Start()
        {
            Dependencies.Inject();
            CoreFactory.GetInstance().InitGlobalRandomNumberGeneratorWithSeed(83457547);

            CoastlineHeightMapGenerator coastlineGenerator = new CoastlineHeightMapGenerator();
            List <BlockPosition>        coastLine          = coastlineGenerator.GenerateCoastline(1024);

            TemperatePlainIslandGenerator islandGenerator = new TemperatePlainIslandGenerator();
            Island testIsland = islandGenerator.GenerateIsland(1024, coastLine);

            StandardIslandPresenter islandPresenter = new StandardIslandPresenter();

            islandPresenter.PresentIsland(testIsland);
        }
 public EmployeeWindowViewModel()
 {
     this.Employees = new ObservableCollection <Employee>(CoreFactory.GetInstance().EmployeeBusinessLogic.GetAllEmployees());
     this._updateEmployeeCommand = new RelayCommand(this.UpdateEmployeeReferenece);
 }
Ejemplo n.º 4
0
        public Shift GetShift(string shiftID)
        {
            Shift shift = CoreFactory.GetInstance().ShiftBusinessLogic.GetShift(Int32.Parse(shiftID));

            return(shift);
        }
Ejemplo n.º 5
0
        public List <Shift> GetAllShifts()
        {
            List <Shift> allShifts = CoreFactory.GetInstance().ShiftBusinessLogic.GetAllShifts();

            return(allShifts);
        }
Ejemplo n.º 6
0
 public CoastlineHeightMapGenerator()
 {
     coastLineHeightMap          = new List <BlockPosition>();
     coastLinePropagationSectors = new CoastlineGenerationListAltenator();
     randomNumberGenerator       = CoreFactory.GetInstance().GetRandomNumberGeneratorInstance();
 }
Ejemplo n.º 7
0
        public Employee GetEmployee(string employeeID)
        {
            Employee employee = CoreFactory.GetInstance().EmployeeBusinessLogic.GetEmployee(Int32.Parse(employeeID));

            return(employee);
        }
Ejemplo n.º 8
0
        public List <Employee> GetAllEmployees()
        {
            List <Employee> allEmployees = CoreFactory.GetInstance().EmployeeBusinessLogic.GetAllEmployees();

            return(allEmployees);
        }