private void btnView_Click(object sender, EventArgs e)
 {
     try
     {
         DataGridViewRow row     = dgvBanner.CurrentRow;
         AdminBannerDTO  banner  = (AdminBannerDTO)dgvBanner.GetItem(row.Index);
         BannerView      ventana = new BannerView();
         ventana.View(banner);
     }
     catch (EntidadNulaException ex)
     {
         MessageBox.Show(ex.Message, "Entidad nula", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Example #2
0
        public void ShowPackageStringNotification(string title, string body, Action <string> action)
        {
            if (IsShow() == false)
            {
                callback = action;

                var application = UIApplication.SharedApplication.Delegate as AppDelegate;

                var bannerView = BannerView.View();
                bannerView.SetPackageString(title, DidClickBanner);
                bannerView.Show();
                application.Window.AddSubview(bannerView);

                CurrentPackageId = "";
            }
        }
Example #3
0
        public void ShowWalletNotification(string title, string subTitle, Action <string> action)
        {
            if (IsShow() == false)
            {
                callback = action;

                var application = UIApplication.SharedApplication.Delegate as AppDelegate;

                var bannerView = BannerView.View();
                bannerView.SetWallet(DidClickBanner);
                bannerView.Show();
                application.Window.AddSubview(bannerView);

                CurrentPackageId = null;
            }
        }
Example #4
0
        public void ShowPackageNotification(Package package, Action <string> action)
        {
            if (IsShow() == false)
            {
                callback = action;

                var application = UIApplication.SharedApplication.Delegate as AppDelegate;

                var bannerView = BannerView.View();
                bannerView.SetPackage(package, DidClickBanner);
                bannerView.Show();
                application.Window.AddSubview(bannerView);

                CurrentPackageId = package.PaketId;
            }
        }