Esempio n. 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            UserID = app.GetString("USERID", string.Empty);
            var _lang = app.GetString("Language", "en");

            ChangeLanguage(_lang);

            base.OnCreate(savedInstanceState);
            _Action  = Intent.GetStringExtra("Action");
            progress = new ProgressbarSetup();
            // Create your application here
            SetContentView(Resource.Layout.sale_dialog);
            mToolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.toolBar);
            Slide slide = new Slide(GravityFlags.Top);

            GetDataBind();


            SetSupportActionBar(mToolbar);
            SupportActionBar ab = SupportActionBar;

            ab.SetDisplayHomeAsUpEnabled(true);

            SupportActionBar.Title = products.Product;

            mItems = FindViewById <EditText>(Resource.Id.edtQty);
            mSizes = FindViewById <EditText>(Resource.Id.edtSizes);
            mDone  = FindViewById <Button>(Resource.Id.btnDone);

            mItems.InputType            = Android.Text.InputTypes.Null;
            mSizes.InputType            = Android.Text.InputTypes.Null;
            mSizes.FocusableInTouchMode = false;
            mItems.Clickable            = false;

            mItems.Text = "1";
            mSizes.Text = products.Sizes.Split(',')[0];

            if (_Action == "Cart")
            {
                mDone.Text = Resources.GetString(Resource.String.add_to_cart);
            }
            else
            {
                setCalcTotalPrice();
                //mDone.Text = Resources.GetString(Resource.String.btn_continue_payment);
            }

            mDone = FindViewById <Button>(Resource.Id.btnDone);
            mItems.TextChanged += (obj, sender) =>
            {
                setCalcTotalPrice();
            };
            mDone.Click  += MDone_Click;
            mItems.Click += MItems_Click;
            mSizes.Click += MSizes_Click;
        }
Esempio n. 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            var _lang = app.GetString("Language", "en");

            ChangeLanguage(_lang);

            base.OnCreate(savedInstanceState);
            Explode fade  = new Explode();
            Slide   fade2 = new Slide(GravityFlags.Right);

            fade.ExcludeTarget(Resource.Id.toolBar, true);
            Window.EnterTransition = fade;
            Window.ExitTransition  = fade2;

            // Create your application here
            SetContentView(Resource.Layout.my_account);
            mFullname      = FindViewById <EditText>(Resource.Id.edtFullname);
            mPhoneNo       = FindViewById <EditText>(Resource.Id.edtPhoneNumber);
            mConfirPhoneNo = FindViewById <EditText>(Resource.Id.edtConfPhoneNumber);
            mLocation      = FindViewById <EditText>(Resource.Id.edtLocation);

            //Set Current Ifo
            mFullname.Text = app.GetString("Fullname", string.Empty);
            mPhoneNo.Text  = app.GetString("PhoneNumber", string.Empty);

            mLocation.Text = app.GetString("MyLocation", string.Empty);

            mToolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.toolBar);

            SetSupportActionBar(mToolbar);
            SupportActionBar ab = SupportActionBar;

            ab.SetDisplayHomeAsUpEnabled(true);

            Progress = new ProgressbarSetup();
        }