Exemplo n.º 1
0
 public DeformityListViewModel(INavigation navigation, string fk)
 {
     _navigation          = navigation;
     _deformityRepository = new DeformityRepository();
     _fk                 = fk;
     AddCommand          = new Command(async() => await ShowAdd(_fk));
     DeleteAllCommand    = new Command(async() => await DeleteAll());
     ShowFilteredCommand = new Command <DEFORMITY>(async(x) => await ShowDeformity(x));
     FetchDetails();
 }
 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);
        }
Exemplo n.º 4
0
 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());
 }