コード例 #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.Contribution);

            // Create your application here
            easypaisa          = (ImageView)FindViewById(Resource.Id.imgEasyPaisa);
            jazzcash           = (ImageView)FindViewById(Resource.Id.imgJazzCash);
            bankaccount        = (ImageView)FindViewById(Resource.Id.imgBankTransfer);
            creditcard         = (ImageView)FindViewById(Resource.Id.CreditCard);
            back               = (ImageView)FindViewById(Resource.Id.close);
            easypaisa.Click   += Easypaisa_Click;
            jazzcash.Click    += Jazzcash_Click;
            bankaccount.Click += Bankaccount_Click;
            creditcard.Click  += Creditcard_Click;
            back.Click        += Back_Click;
            radiobank          = FindViewById <RadioButton>(Resource.Id.Radiobank);
            radiobank.Click   += Radiobank_Click;

            radiocard        = FindViewById <RadioButton>(Resource.Id.Radiocard);
            radiocard.Click += Radiocard_Click;

            radioeasy        = FindViewById <RadioButton>(Resource.Id.RadioEasypaisa);
            radioeasy.Click += Radioeasy_Click;

            radiojazz        = FindViewById <RadioButton>(Resource.Id.RadioJazzcash);
            radiojazz.Click += Radiojazz_Click;
            Task.Run(async() =>
            {
                paymentInfo = await new Model.PaymentInfo().getInfoFromDB();
            });
        }
コード例 #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here
            SetContentView(Resource.Layout.AdsPayment);

            texthead = FindViewById <TextView>(Resource.Id.imgTextContribute);
            tf       = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf");
            texthead.SetTypeface(tf, TypefaceStyle.Bold);

            texteasy = FindViewById <TextView>(Resource.Id.TextEasyPaisa);
            tf       = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf");
            texteasy.SetTypeface(tf, TypefaceStyle.Bold);

            textjazz = FindViewById <TextView>(Resource.Id.TextJazzCash);
            tf       = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf");
            textjazz.SetTypeface(tf, TypefaceStyle.Bold);

            textbank = FindViewById <TextView>(Resource.Id.TextBank);
            tf       = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf");
            textbank.SetTypeface(tf, TypefaceStyle.Bold);

            textcard = FindViewById <TextView>(Resource.Id.TextCard);
            tf       = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf");
            textcard.SetTypeface(tf, TypefaceStyle.Bold);

            easypaisa        = FindViewById <ImageView>(Resource.Id.imgEasyPaisa);
            easypaisa.Click += Easypaisa_Click;

            submit        = FindViewById <Button>(Resource.Id.button1);
            submit.Click += Submit_Click;

            jazzcash        = FindViewById <ImageView>(Resource.Id.imgJazzCash);
            jazzcash.Click += Jazzcash_Click;

            bankaccount        = FindViewById <ImageView>(Resource.Id.imgBankTransfer);
            bankaccount.Click += Bankaccount_Click;

            creditcard        = FindViewById <ImageView>(Resource.Id.CreditCard);
            creditcard.Click += Creditcard_Click;

            back        = FindViewById <ImageView>(Resource.Id.imggoback);
            back.Click += Back_Click;

            close        = FindViewById <ImageView>(Resource.Id.close);
            close.Click += Close_Click;

            radiobank        = FindViewById <RadioButton>(Resource.Id.Radiobank);
            radiobank.Click += Radiobank_Click;

            radiocard        = FindViewById <RadioButton>(Resource.Id.Radiocard);
            radiocard.Click += Radiocard_Click;

            radioeasy        = FindViewById <RadioButton>(Resource.Id.RadioEasypaisa);
            radioeasy.Click += Radioeasy_Click;

            radiojazz        = FindViewById <RadioButton>(Resource.Id.RadioJazzcash);
            radiojazz.Click += Radiojazz_Click;

            Task.Run(async() =>
            {
                paymentInfo = await new Model.PaymentInfo().getInfoFromDB();
            });
        }