예제 #1
0
        public CollectibleItemsViewModel()
        {
            Title = ItemType;
            var cis = new CollectibleItemsService();

            Items = cis.GetItemsByType(ItemType);
        }
예제 #2
0
        public CollectibleItemTypesViewModel()
        {
            Title = "Item Types";
            var cis = new CollectibleItemsService();

            ItemTypes = cis.GetTypeNames();
        }
예제 #3
0
        private void CheckBox_CheckedChanged(object sender, CheckedChangedEventArgs e)
        {
            var cis         = new CollectibleItemsService();
            var itemChecked = (CheckBox)sender;

            cis.UpdateItemCheck(itemChecked.IsChecked, Item);
        }
예제 #4
0
        private void SetItems()
        {
            var cis = new CollectibleItemsService();

            ItemTotal    = cis.GetTotal();
            ItemComplete = cis.GetNumberOfComplete();
        }
예제 #5
0
        private void CheckBox_CheckedChanged(object sender, CheckedChangedEventArgs e)
        {
            var             cis         = new CollectibleItemsService();
            var             itemChecked = (CheckBox)sender;
            CollectibleItem item        = itemChecked.BindingContext as CollectibleItem;

            cis.UpdateItemCheck(itemChecked.IsChecked, item);
        }
예제 #6
0
        public CollectibleItemPage(CollectibleItem item)
        {
            Item = item;
            InitializeComponent();
            var cis = new CollectibleItemsService();

            ItemLocation        = cis.GetLocationByItem(Item);
            this.BindingContext = new CollectibleItemViewModel(Item);
        }
예제 #7
0
        public CollectibleItemViewModel(CollectibleItem item)
        {
            Item = item;
            var cis          = new CollectibleItemsService();
            var itemLocation = cis.GetLocationByItem(Item);

            if (itemLocation == null)
            {
                return;
            }
            HasLocationLink = true;
        }