Пример #1
0
        private void Button_Clicked(object sender, EventArgs e)
        {
            MyList myList = new MyList();

            myList.Topic = dish.Topic;

            myList.Price = dish.Price;

            myList.items = dish.ingredients;

            myList.CalcItemCount();

            lvm.AddNewList(myList);

            Navigation.PopAsync();
        }
Пример #2
0
        private void ImageButton_Done_Clicked(object sender, EventArgs e)
        {
            //TODO Implement a real list instead of dummy list

            MyList myNewList = new MyList();

            myNewList.Topic = EntryNameOfList.Text;
            myNewList.Price = 1337;
            myNewList.items = new System.Collections.ObjectModel.ObservableCollection <string> {
                "test1", "test2", "test3"
            };
            myNewList.CalcItemCount();

            lvm.AddNewList(myNewList);



            Navigation.PopAsync();
        }