예제 #1
0
 public AddCargoBorderViewModel(ICargoService cargoService, IVariableService variableService, ICargoBorderService cargoBorderService)
 {
     this.cargoService       = cargoService;
     this.variableService    = variableService;
     this.cargoBorderService = cargoBorderService;
     LoadCommands();
     LoadData();
     Messenger.Default.Register <Cargo>(this, HandleCargoMessage);
 }
예제 #2
0
 public void Init()
 {
     cargoService       = new CargoService(LoggedUser.Username, LoggedUser.Password);
     cargoBorderService = new CargoBorderService(LoggedUser.Username, LoggedUser.Password);
     employeeService    = new EmployeeService(LoggedUser.Username, LoggedUser.Password);
     exceedingsService  = new ExceedingsPerCargoService(LoggedUser.Username, LoggedUser.Password);
     logService         = new LogService(LoggedUser.Username, LoggedUser.Password);
     sensorDataService  = new SensorDataService(LoggedUser.Username, LoggedUser.Password);
     sensorService      = new SensorService(LoggedUser.Username, LoggedUser.Password);
     variableService    = new VariableService(LoggedUser.Username, LoggedUser.Password);
 }