Ejemplo n.º 1
0
        public override void OnBackPressed()
        {
            if (this.isChanged)
            {
                Intent intent = new Intent();
                intent.PutExtra("ArticleId", this.articleId);
                this.SetResult(Result.Ok, intent);
            }

            base.OnBackPressed();

            StorageItemQuantityActivity.Reload();
        }
        private void OnOpenArticleStorageItemQuentity(object sender, AdapterView.ItemClickEventArgs e)
        {
            Java.Lang.Object itemObject = ((ListView)sender).GetItemAtPosition(e.Position);

            StorageItemListView item = Tools.Cast <StorageItemListView>(itemObject);

            StorageItemQuantityActivity.Reload();   // Artikel neu laden

            var storageItemQuantity = new Intent(this, typeof(StorageItemQuantityActivity));

            storageItemQuantity.PutExtra("Heading", item.Heading);
            storageItemQuantity.PutExtra("ArticleId", item.ArticleId);
            this.StartActivityForResult(storageItemQuantity, StorageItemQuantityId);

            ListView listView = FindViewById <ListView>(Resource.Id.StorageItemView);

            this.listViewState = listView.OnSaveInstanceState();
        }