Esempio n. 1
0
        public void Execute(object parameter)
        {
            ItemViewPage  itemViewPage = parameter as ItemViewPage;
            ItemViewModel vm           = itemViewPage.Resources["ItemVM"] as ItemViewModel;
            AddItemPopup  popup        = new AddItemPopup();

            popup.Resources["ItemVM"] = vm;
            vm.IsItemPopup            = true;
            ItemPopupViewModel popUpVM = popup.Resources["PopUpVM"] as ItemPopupViewModel;
            ItemModel          model   = new ItemModel();

            popUpVM.Shop_Name = model.Shop_Name;
            popUpVM.Memo      = model.Memo;
            popUpVM.Name      = model.Name;
            popUpVM.Link      = model.Link;
            popUpVM.Item_ID   = model.Item_ID;
            popUpVM.Price     = model.Price;
            if (model.Liked == 1)
            {
                popUpVM.Liked = true;
            }
            else
            {
                popUpVM.Liked = false;
            }
            popUpVM.Temp     = model.Temp;
            popUpVM.Image    = model.Image;
            popUpVM.Category = model.Category;
            popup.Show();
        }
Esempio n. 2
0
        private void BtnAddItems_Click(object sender, EventArgs e)
        {
            AddItemPopup Popup = new AddItemPopup();

            Enabled             = false;
            LblDeactive.Visible = true;
            Popup.FormClosed   += Popup_FormClosed;
            Popup.Show();
        }