예제 #1
0
        void Command_ShowDetails_Click(Model_StoreDetails store)
        {
            var vm = SimpleIoc.Default.GetInstance <ViewModel_StoreRegistration>();

            vm.StoreDetails      = store;
            vm.SelectedImagePath = store.ImagePath;
            vm.IsUpdate          = true;

            this.Nav.NavigateTo(Enums.Enum_Pages.STOREOWNER_STOREREGISTRATION);
        }
        async void Command_AddToFavorites_Click(Model_StoreDetails store)
        {
            var ret = await _data.CustomerService.SaveToFavorites(store);

            if (ret)
            {
                await this.Dialog.ShowMessage("Saved to your favorites", "Saved", "ok", null);
            }

            this.SelectedStore = store;
        }
예제 #3
0
        async void Command_Remove_Click(Model_StoreDetails store)
        {
            var res = await this._data.CustomerService.RemoveToFavorites(store);

            if (res)
            {
                this.StoreCollections.Remove(store);
            }
            else
            {
                await this.Dialog.ShowMessage("Unable to remove the current item", "Removing item", "ok", null);
            }
        }
예제 #4
0
 void Command_ViewStoreDetails_Click(Model_StoreDetails store)
 {
     this.SelectedStore    = store;
     this.ShowStoreDetails = true;
 }
예제 #5
0
 void Command_OpenStore_Click(Model_StoreDetails store)
 {
     store.IsOpen = true;
     this._data.StoresService.UpdateStoreAsync(store);
 }