public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var dlg = inflater.Inflate(Resource.Layout.layoutrangeplace, container, false);

            Controller.Fragment.EnterPlace fdlg = new Fragment.EnterPlace(ctx);
            var          font      = Typeface.CreateFromAsset(ctx.Assets, "Estedad.ttf");
            LinearLayout lnaboutus = dlg.FindViewById <LinearLayout>(Resource.Id.rangeplacelinearlayout);

            lnaboutus.SetBackgroundResource(Resource.Drawable.dialog_fragment_round);
            rangeplacetxtviewcaption          = dlg.FindViewById <TextView>(Resource.Id.rangeplacetxtviewcaption);
            rangeplacetxtviewcaption.Typeface = font;
            rangeplacebtnexit          = dlg.FindViewById <Button>(Resource.Id.rangeplacebtnexit);
            rangeplacebtnexit.Typeface = font;
            rangeplacebtnexit.Click   += delegate {
                if (rangeplacebtnrangeplace.Text.StartsWith("انتخاب "))
                {
                    rangeplacebtnrangeplace.Text = "تمام شیراز";
                }
                OnGetCurrentItem.Invoke(this, new FilterRange(rangeplacebtnrangeplace.Text));
                Dismiss();
            };
            rangeplacechkOnlyshiraz          = dlg.FindViewById <CheckBox>(Resource.Id.rangeplacechkOnlyshiraz);
            rangeplacechkOnlyshiraz.Typeface = font;
            rangeplacebtnrangeplace          = dlg.FindViewById <Button>(Resource.Id.rangeplacebtnrangeplace);
            rangeplacebtnrangeplace.Typeface = font;
            rangeplacebtnrangeplace.Click   += delegate {
                fdlg.Show(this.FragmentManager, "ebrahimfragmententerplace");
                fdlg.OnGetPlaceEvent           += Fdlg_OnGetPlaceEvent;
                rangeplacechkOnlyshiraz.Checked = false;
            };

            return(dlg);
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            // Use this to return your custom view for this Fragment
            // return inflater.Inflate(Resource.Layout.YourFragment, container, false);
            var dlg = inflater.Inflate(Resource.Layout.layoutentercost, container, false);

            var          font      = Typeface.CreateFromAsset(ctx.Assets, "Estedad.ttf");
            LinearLayout lnaboutus = dlg.FindViewById <LinearLayout>(Resource.Id.entercostlinearlayout);

            lnaboutus.SetBackgroundResource(Resource.Drawable.dialog_fragment_round);

            entercosttxtviewcaption          = dlg.FindViewById <TextView>(Resource.Id.entercosttxtviewcaption);
            entercosttxtviewcaption.Typeface = font;

            entercostedittextcost            = dlg.FindViewById <EditText>(Resource.Id.entercostedittextcost);
            entercosttxtviewcaption.Typeface = font;
            //  run();
            Dialog.Window.SetSoftInputMode(SoftInput.StateAlwaysVisible);
            entercostedittextcost.RequestFocus();



            //  entercostedittextcost.Text = "1000";



            entercostbtnpay = dlg.FindViewById <Button>(Resource.Id.entercostbtnpay);
            entercosttxtviewcaption.Typeface = font;



            entercostbtnpay.Click += delegate {
                string getnumber = entercostedittextcost.Text;
                //string digitpersiannumber = getnumber.Replace("0", "٠").Replace("1", "١").Replace("2", "٢").Replace("3", "٣").Replace("4", "٤").Replace("5", "٥").Replace("6", "٦").Replace("7", "٧").Replace("8", "٨").Replace("9", "٩");
                OnGetCurrentItem.Invoke(this, new GetCostItem(getnumber));
                Dismiss();
            };

            return(dlg);
        }
Пример #3
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            // Use this to return your custom view for this Fragment
            // return inflater.Inflate(Resource.Layout.YourFragment, container, false);

            var dlg = inflater.Inflate(Resource.Layout.layoutCaptionEvent, container, false);



            LinearLayout lnaboutus = dlg.FindViewById <LinearLayout>(Resource.Id.captioneventlinearlayout);

            lnaboutus.SetBackgroundResource(Resource.Drawable.dialog_fragment_round);


            var font = Typeface.CreateFromAsset(ctx.Assets, "Estedad.ttf");

            captioneventtxtviewheader          = dlg.FindViewById <TextView>(Resource.Id.captioneventtxtviewheader);;
            captioneventtxtviewheader.Typeface = font;
            //خوراکی ها
            captioneventradFoods = dlg.FindViewById <CheckBox>(Resource.Id.captioneventradFoods);
            //سلامتی و زیبایی
            captioneventradhealth = dlg.FindViewById <CheckBox>(Resource.Id.captioneventradhealth);

            //کلاس های آموزشی
            captioneventradclasseduction = dlg.FindViewById <CheckBox>(Resource.Id.captioneventradclasseduction);

            captioneventradFoods.Typeface  = font;
            captioneventradhealth.Typeface = font;

            captioneventradclasseduction.Typeface = font;
            //فروشگاه ها
            captioneventradstore          = dlg.FindViewById <CheckBox>(Resource.Id.captioneventradstore);
            captioneventradstore.Typeface = font;



            captioneventradfarhangi          = dlg.FindViewById <CheckBox>(Resource.Id.captioneventradfarhangi);
            captioneventradfarhangi.Typeface = font;


            captioneventradsport          = dlg.FindViewById <CheckBox>(Resource.Id.captioneventradsport);
            captioneventradsport.Typeface = font;

            captioneventradelmi          = dlg.FindViewById <CheckBox>(Resource.Id.captioneventradelmi);
            captioneventradelmi.Typeface = font;


            captioneventradpeople          = dlg.FindViewById <CheckBox>(Resource.Id.captioneventradpeople);
            captioneventradpeople.Typeface = font;

            captioneventradtourism          = dlg.FindViewById <CheckBox>(Resource.Id.captioneventradtourism);
            captioneventradtourism.Typeface = font;

            captioneventradmazhabi          = dlg.FindViewById <CheckBox>(Resource.Id.captioneventradmazhabi);
            captioneventradmazhabi.Typeface = font;

            captioneventbtnenter          = dlg.FindViewById <Button>(Resource.Id.captioneventbtnenter);
            captioneventbtnenter.Typeface = font;



            captioneventradstore.Click += delegate {
                captioneventradfarhangi.Checked = false;

                captioneventradsport.Checked   = false;
                captioneventradelmi.Checked    = false;
                captioneventradpeople.Checked  = false;
                captioneventradtourism.Checked = false;
                captioneventradmazhabi.Checked = false;

                captioneventradFoods.Checked         = false;
                captioneventradhealth.Checked        = false;
                captioneventradclasseduction.Checked = false;

                FragmnetStore fdialog = new FragmnetStore(ctx);
                fdialog.Show(this.FragmentManager, "ebrahimStoreFragment");
                fdialog.OnGetCaptionStore += delegate(object sender, GetStore e) {
                    OnGetCurrentItem.Invoke(this, new GetCurrentItem(e.GetCaption));
                    Dismiss();
                };
            };

            captioneventradfarhangi.Click += delegate {
                captioneventradstore.Checked = false;

                captioneventradsport.Checked   = false;
                captioneventradelmi.Checked    = false;
                captioneventradpeople.Checked  = false;
                captioneventradtourism.Checked = false;
                captioneventradmazhabi.Checked = false;

                captioneventradFoods.Checked         = false;
                captioneventradhealth.Checked        = false;
                captioneventradclasseduction.Checked = false;


                CaptionCulturalFragment fdialog = new CaptionCulturalFragment(ctx);
                fdialog.Show(this.FragmentManager, "ebrahimCulturalFragment");
                fdialog.OnGetCaptionCultrual += delegate(object sender, GetCaptionCultrual e) {
                    OnGetCurrentItem.Invoke(this, new GetCurrentItem(e.GetCaption));
                    Dismiss();
                };
            };
            captioneventradsport.Click += delegate {
                captioneventradstore.Checked = false;

                captioneventradfarhangi.Checked = false;

                captioneventradelmi.Checked    = false;
                captioneventradpeople.Checked  = false;
                captioneventradtourism.Checked = false;
                captioneventradmazhabi.Checked = false;

                captioneventradFoods.Checked         = false;
                captioneventradhealth.Checked        = false;
                captioneventradclasseduction.Checked = false;

                CaptionSportFragment fdialog = new CaptionSportFragment(ctx);
                fdialog.Show(this.FragmentManager, "ebragimCaptionSportFragment");
                fdialog.OnGetCaptionSport += delegate(object sender, GetCaptionSport e) {
                    OnGetCurrentItem.Invoke(this, new GetCurrentItem(e.GetValue));
                    Dismiss();
                };
            };

            captioneventradelmi.Click += delegate {
                captioneventradstore.Checked = false;

                captioneventradfarhangi.Checked = false;
                captioneventradsport.Checked    = false;

                captioneventradpeople.Checked  = false;
                captioneventradtourism.Checked = false;
                captioneventradmazhabi.Checked = false;

                captioneventradFoods.Checked         = false;
                captioneventradhealth.Checked        = false;
                captioneventradclasseduction.Checked = false;

                CaptionProfessionsFragment fdialog = new CaptionProfessionsFragment(ctx);
                fdialog.Show(this.FragmentManager, "ebragimCaptionProfessionsFragment");
                fdialog.OnGetCaptionProfessions += delegate(object sender, GetCaptionProfessions e) {
                    OnGetCurrentItem.Invoke(this, new GetCurrentItem(e.GetValue));
                    Dismiss();
                };
            };
            captioneventradpeople.Click += delegate {
                captioneventradstore.Checked = false;

                captioneventradfarhangi.Checked = false;
                captioneventradsport.Checked    = false;
                captioneventradelmi.Checked     = false;

                captioneventradtourism.Checked = false;
                captioneventradmazhabi.Checked = false;

                captioneventradFoods.Checked         = false;
                captioneventradhealth.Checked        = false;
                captioneventradclasseduction.Checked = false;

                CaptionPeopleFragment fdialog = new CaptionPeopleFragment(ctx);
                fdialog.Show(this.FragmentManager, "ebragimCaptionPeopleFragment");
                fdialog.OngetCaptionPeople += delegate(object sender, GetCaptionPeople e) {
                    OnGetCurrentItem.Invoke(this, new GetCurrentItem(e.GEtValue));
                    Dismiss();
                };
            };
            captioneventradtourism.Click += delegate {
                captioneventradstore.Checked = false;

                captioneventradfarhangi.Checked = false;
                captioneventradsport.Checked    = false;
                captioneventradelmi.Checked     = false;
                captioneventradpeople.Checked   = false;

                captioneventradmazhabi.Checked = false;

                captioneventradFoods.Checked         = false;
                captioneventradhealth.Checked        = false;
                captioneventradclasseduction.Checked = false;

                CaptionTourismFragment fdialog = new CaptionTourismFragment(ctx);
                fdialog.Show(this.FragmentManager, "ebragimCaptionTourismFragment");
                fdialog.OnGetCaptionTourism += delegate(object sender, GetCaptionTourism e) {
                    OnGetCurrentItem.Invoke(this, new GetCurrentItem(e.GetValue));
                    Dismiss();
                };
            };
            captioneventradmazhabi.Click += delegate {
                captioneventradstore.Checked = false;

                captioneventradfarhangi.Checked = false;
                captioneventradsport.Checked    = false;
                captioneventradelmi.Checked     = false;
                captioneventradpeople.Checked   = false;
                captioneventradtourism.Checked  = false;

                captioneventradFoods.Checked         = false;
                captioneventradhealth.Checked        = false;
                captioneventradclasseduction.Checked = false;

                CaptionReligiouseFragment fdialog = new CaptionReligiouseFragment(ctx);
                fdialog.Show(this.FragmentManager, "ebragimCaptionTourismFragment");
                fdialog.OngetCaptionreligiouse += delegate(object sender, GetCaptionReligiouse e) {
                    OnGetCurrentItem.Invoke(this, new GetCurrentItem(e.GetValue));
                    Dismiss();
                };
            };

            captioneventradFoods.Click += delegate {
                captioneventradstore.Checked = false;

                captioneventradmazhabi.Checked  = false;
                captioneventradfarhangi.Checked = false;
                captioneventradsport.Checked    = false;
                captioneventradelmi.Checked     = false;
                captioneventradpeople.Checked   = false;
                captioneventradtourism.Checked  = false;

                // captioneventradFoods.Checked = false;
                captioneventradhealth.Checked        = false;
                captioneventradclasseduction.Checked = false;

                FoodFragment fdialog = new FoodFragment(ctx);
                fdialog.Show(this.FragmentManager, "ebragimFoodFragmentFragment");
                fdialog.OnGetCaptionFood += delegate(object sender, GetCaptionFood e) {
                    OnGetCurrentItem.Invoke(this, new GetCurrentItem(e.GetCaption));
                    Dismiss();
                };
            };
            captioneventradhealth.Click += delegate {
                captioneventradstore.Checked = false;

                captioneventradmazhabi.Checked  = false;
                captioneventradfarhangi.Checked = false;
                captioneventradsport.Checked    = false;
                captioneventradelmi.Checked     = false;
                captioneventradpeople.Checked   = false;
                captioneventradtourism.Checked  = false;

                captioneventradFoods.Checked = false;
                //  captioneventradhealth.Checked = false;
                captioneventradclasseduction.Checked = false;

                HealthFragment fdialog = new HealthFragment(ctx);
                fdialog.Show(this.FragmentManager, "ebragimHealthtFragment");
                fdialog.OnGetCaptionHealth += delegate(object sender, GetHealth e) {
                    OnGetCurrentItem.Invoke(this, new GetCurrentItem(e.GetCaption));
                    Dismiss();
                };
            };
            captioneventradclasseduction.Click += delegate {
                captioneventradstore.Checked = false;

                captioneventradmazhabi.Checked  = false;
                captioneventradfarhangi.Checked = false;
                captioneventradsport.Checked    = false;
                captioneventradelmi.Checked     = false;
                captioneventradpeople.Checked   = false;
                captioneventradtourism.Checked  = false;

                captioneventradFoods.Checked  = false;
                captioneventradhealth.Checked = false;
                //  captioneventradclasseduction.Checked = false;

                ClassEductionFragment fdialog = new ClassEductionFragment(ctx);
                fdialog.Show(this.FragmentManager, "ebragimclassEductionFragment");
                fdialog.OnGetCaption += delegate(object sender, GetClassEduction e) {
                    OnGetCurrentItem.Invoke(this, new GetCurrentItem(e.GetCaption));
                    Dismiss();
                };
            };

            //   captioneventbtnenter.Text = "خروج";

            captioneventbtnenter.Click += delegate {
                Dismiss();
            };
            return(dlg);
        }