public LogViewModel(INavigator navigator, IBaseService <Logg> logService, IFileManager fileManager, IHuntFactory huntFactory, ICustomFieldFactory fieldFactory, IMediaService mediaService) { _navigator = navigator; _logService = logService; _fileManager = fileManager; _huntFactory = huntFactory; _fieldFactory = fieldFactory; MediaService = mediaService; ItemTappedCommand = new Command(async() => await ShowItem()); SaveCommand = new Command(async() => await Save()); DeleteCommand = new Command(async() => await Delete()); CancelCommand = new Command(async() => { await _navigator.PopAsync(); }); TimeCommand = new Command(async() => { await EditDateFrom(); }); NoSpecieCommand = new Command(async() => { await _navigator.PushAsync <SpeciesViewModel>(); }); HunterAndDog = new ObservableCollection <PickerItem>(); CustomFields = new List <CustomFieldViewModel>(); CreateImageActions(); CreatePositionActions(); }
public CustomFieldsViewModel(ICustomFieldFactory factory, INavigator navigator) { _navigator = navigator; _factory = factory; AddCommand = new Command(async() => await AddItem()); IsBusy = true; }