Esempio n. 1
0
        public SkierDetailViewModel(ISkierViewModel parent)
        {
            this.Parent              = parent ?? throw new ArgumentNullException();
            this.CountryCodes        = new ObservableCollection <string>();
            this.notificationService = App.Container.Resolve <INotificationService>();
            this.locationLogic       = App.Container.Resolve <ILocationLogic>();

            this.SaveCommandViewModel = new CommandViewModel(
                "Save",
                "Save skier",
                async() => await this.Parent.SaveAsync(),
                () => !this.Parent.Edit?.HasErrors ?? false);

            this.SaveCommandViewModel.OnSuccess += () => this.notificationService.ShowMessage("Saved successfully");
            this.SaveCommandViewModel.OnFailure += (ex) => this.notificationService.ShowMessage("Save failed");

            this.RemoveCommandViewModel = new CommandViewModel(
                "Remove",
                "Remove skier",
                async() => await this.Parent.RemoveAsync(),
                withStyle: ButtonStyle.Flat);

            this.RemoveCommandViewModel.OnSuccess += () => this.notificationService.ShowMessage("Removed successfully");
            this.RemoveCommandViewModel.OnFailure += (ex) => this.notificationService.ShowMessage("Remove failed");
        }
Esempio n. 2
0
 public LocationController(
     IMapper mapper,
     ILocationLogic locationLogic)
 {
     this.mapper        = mapper ?? throw new ArgumentNullException(nameof(mapper));
     this.locationLogic = locationLogic ?? throw new ArgumentNullException(nameof(locationLogic));
 }
Esempio n. 3
0
 public UserLogic(IUserRepository repository, ISkillLogic skillLogic, ISparkLogic sparkLogic, ILocationLogic locationLogic)
 {
     _repository    = repository;
     _skillLogic    = skillLogic;
     _sparkLogic    = sparkLogic;
     _locationLogic = locationLogic;
 }
 public ILocationLogic GetLocationLogic()
 {
     if (locationLogic == null)
     {
         locationLogic = new LocationLogic(this.imisModules);
     }
     return(locationLogic);
 }
Esempio n. 5
0
 public ProjectLogic(IProjectRepository repository, ILocationRepository locationRepository, ISkillLogic skillLogic, ISparkLogic sparkLogic, ILocationLogic locationLogic, ICategoryLogic categoryLogic)
 {
     _repository         = repository;
     _locationRepository = locationRepository;
     _skillLogic         = skillLogic;
     _sparkLogic         = sparkLogic;
     _locationLogic      = locationLogic;
     _categoryLogic      = categoryLogic;
 }
Esempio n. 6
0
 public PlaceLogic(ObjectContextEntities context, ICourtLogic courtLogic, ICourtBookLogic bookService, IFileLogic fileService, ILocationLogic locationService, UserAuthentication authentication)
 {
     _bookService = bookService;
     _fileService = fileService;
     _locationService = locationService;
     _authentication = authentication;
     _context = context;
     _courtLogic = courtLogic;
 }
Esempio n. 7
0
 public CommonController(ILocationLogic locationLogic)
 {
     _locationLogic = locationLogic;
 }
 public ParkingController(IParkingContext context, ILocationLogic locationLogic)
 {
     _context       = context;
     _locationLogic = locationLogic;
 }
Esempio n. 9
0
 public LocationsController(IMapper mapper, ILocationLogic locationLogic) : base(mapper, locationLogic)
 {
 }
Esempio n. 10
0
 public LocationController(ILocationLogic location, IMapper mapper)
 {
     _location = location;
     _mapper   = mapper;
 }
 public IMasterDataManagementModule SetLocationLogic(ILocationLogic locationLogic)
 {
     this.locationLogic = locationLogic;
     return(this);
 }
 public WeatherController(ILocationLogic locationLogic,
                          IForecastLogic forecastLogic)
 {
     _locationLogic = locationLogic;
     _forecastLogic = forecastLogic;
 }