Пример #1
0
        protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
        {
            base.OnActivityResult(requestCode, resultCode, data);

            if (resultCode == Result.Ok && requestCode == 100)
            {
                var selectedGcPurchase = gcPurchaseDataService.GetGcPurchaseById(data.GetIntExtra("selectedGcPurchaseId", 0));

                var dialog = new AlertDialog.Builder(this);
                dialog.SetTitle("Confirmation");
                dialog.SetMessage(string.Format("You've added {0} time(s) the {1}", data.GetIntExtra("amount", 0), selectedGcPurchase.CcNumber));
                dialog.Show();
            }
        }
Пример #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);


            SetContentView(Resource.Layout.GiftCertDetailView);


            GcPurchaseDataService dataService = new GcPurchaseDataService();
            var selectedGcPurchaseId          = Intent.Extras.GetInt("selectedGcPurchaseId");

            selectedHotDog = dataService.GetGcPurchaseById(selectedGcPurchaseId);


            FindViews();
            BindData();
            HandleEvents();
        }