public AddDeformityViewModel(INavigation navigation, string selectedID) { _navigation = navigation; _deformity = new DEFORMITY(); _deformity.TREEID = selectedID; _deformityRepository = new DeformityRepository(); _fk = selectedID; AddCommand = new Command(async() => await Update()); DeleteCommand = new Command(async() => await Delete()); ListCause = PickerService.CauseItems().ToList(); ListType = PickerService.TypeItems().ToList(); }
public DeformityDetailsViewModel(INavigation navigation, string selectedID) { _navigation = navigation; _deformity = new DEFORMITY(); //_vegetation.VEGETATIONID = selectedID; _deformityRepository = new DeformityRepository(); _fk = selectedID; AddCommand = new Command(async() => await Update()); DeleteCommand = new Command(async() => await Delete()); ListCause = PickerService.CauseItems().ToList(); ListType = PickerService.TypeItems().ToList(); FetchDetails(selectedID); }
public AddDeformityViewModel(INavigation navigation, string selectedID) { _navigation = navigation; _deformity = new DEFORMITY(); _deformity.TREEID = selectedID; _deformityRepository = new DeformityRepository(); _fk = selectedID; AddCommand = new Command(async() => await Update()); DeleteCommand = new Command(async() => await Delete()); ListCause = PickerService.CauseItems().ToList(); ListType = PickerService.TypeItems().OrderBy(x => x.ID).ToList(); IsChanged = false; OnAppearingCommand = new Command(() => OnAppearing()); OnDisappearingCommand = new Command(() => OnDisappearing()); }