private void PrepareUI()
        {
            try
            {
                StaticDataModel._CurrentContext.IsGestureEnabled = false;
                flowlistview.FlowColumnMinWidth = App.ScreenWidth;
                flowlistview.HeightRequest      = App.ScreenHeight / 3;
                imgProduct.HeightRequest        = App.ScreenHeight / 4;

                imgProduct.Source    = _product.product_image;
                lblProductTitle.Text = _product.product_name;

                if (StaticMethods.IsIpad())
                {
                    _slFooter.HeightRequest = 100;
                    txtMsg.HeightRequest    = 80;
                    btnSend.HeightRequest   = 60;
                    btnSend.WidthRequest    = 60;
                    btnSend.BorderRadius    = 30;
                }
                var model = StaticMethods.GetLocalSavedData();
                if (!string.IsNullOrEmpty(model.name))
                {
                    _userName = model.name;
                }

                if (Convert.ToInt32(_product.user_id) == StaticDataModel.userId)
                {
                    _isProductAdmin = true;
                }
            }
            catch (Exception ex)
            {
            }
        }
Exemple #2
0
 public ForgotPasswordPage()
 {
     InitializeComponent();
     NavigationPage.SetHasNavigationBar(this, false);
     btnBack.Clicked      += BtnBack_Clicked;
     btnSubmit.Clicked    += BtnSubmit_Clicked;
     txtEmail.Focused     += TxtEmail_Focused;
     txtEmail.TextChanged += TxtEmail_TextChanged;
     if (StaticMethods.IsIpad())
     {
         SetupIpadUI();
     }
 }
 private async void PrepareUI()
 {
     try
     {
         imgTopBackgroud.HeightRequest = (App.ScreenHeight / 3) - 20;
         if (StaticMethods.IsIpad())
         {
             _slFooter.HeightRequest      = 115;
             btnOnlineStore.HeightRequest = 50;
             btnOnlineStore.WidthRequest  = 200;
         }
     }
     catch (Exception ex)
     {
     }
 }
Exemple #4
0
 private void PrepareUI()
 {
     try
     {
         if (StaticMethods.IsIpad())
         {
             lblQuestion.FontSize   = 30;
             btnStart.HeightRequest = 70;
             btnStart.FontSize      = 30;
             btnStart.Margin        = new Thickness(20, 60, 20, 0);
         }
     }
     catch (Exception ex)
     {
     }
 }
        public ChangePasswordPage()
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, false);

            txtOldPassword.Focused     += TxtOldPassword_Focused;
            txtNewPassword.Focused     += TxtNewPassword_Focused;
            txtConfirmPassword.Focused += TxtConfirmPassword_Focused;
            btnBack.Clicked            += BtnBack_Clicked;
            btnSubmit.Clicked          += BtnSubmit_Clicked;

            if (StaticMethods.IsIpad())
            {
                SetupIpadUI();
            }
        }
Exemple #6
0
        private void PrepareUI()
        {
            try
            {
                //flowlistview1.FlowColumnMinWidth = App.ScreenWidth;
                itemWidth = App.ScreenWidth / 2;


                if (StaticMethods.IsIpad())
                {
                    //_slFooter.HeightRequest = 115;
                }


                btnLoadMore.IsVisible = false;
            }
            catch (Exception ex)
            {
            }
        }
 private void PrepareUI()
 {
     try
     {
         imgBike.Source      = Constants.ImageUrl + _model.data[0].attachment;
         lblBikeType.Text    = _model.data[0].type_of_bike;
         lblDescription.Text = _model.data[0].description;
         if (StaticMethods.IsIpad())
         {
             btnShowBikes.HeightRequest = 70;
             btnFinish.HeightRequest    = 70;
             btnShowBikes.FontSize      = 30;
             btnFinish.FontSize         = 30;
             _slButton.Margin           = new Thickness(0, 30, 0, 0);
         }
     }
     catch (Exception ex)
     {
     }
 }
 private void PrepareUI()
 {
     try
     {
         if (StaticMethods.IsIpad())
         {
             slNotification.HeightRequest   = 70;
             slChangePassword.HeightRequest = 70;
             slChangeEmail.HeightRequest    = 70;
             slEmailus.HeightRequest        = 70;
             slWebsite.HeightRequest        = 70;
             slCall.HeightRequest           = 70;
             slReview.HeightRequest         = 70;
             slHelp.HeightRequest           = 70;
             slLogout.HeightRequest         = 70;
         }
     }
     catch (Exception ex)
     {
     }
 }
Exemple #9
0
        public RegistrationPage()
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, false);

            store   = AccountStore.Create();
            account = store.FindAccountsForService(Constants.AppName).FirstOrDefault();


            btnLogin.Clicked     += BtnLogin_Clicked;
            btnRegister.Clicked  += BtnRegister_Clicked;
            txtUsername.Focused  += TxtUsername_Focused;
            txtEmail.Focused     += TxtEmail_Focused;
            txtPass.Focused      += TxtPass_Focused;
            txtConPass.Focused   += TxtConPass_Focused;
            txtEmail.TextChanged += TxtEmail_TextChanged;
            if (StaticMethods.IsIpad())
            {
                SetupIpadUI();
            }
        }
 private void PrepareUI()
 {
     try
     {
         if (StaticMethods.IsIpad())
         {
             lblQuestion.FontSize  = 30;
             btnBack.HeightRequest = 70;
             btnNext.HeightRequest = 70;
             btnBack.FontSize      = 30;
             btnNext.FontSize      = 30;
             lblA.FontSize         = 30;
             lblB.FontSize         = 30;
             lblC.FontSize         = 30;
             _slButton.Margin      = new Thickness(0, 30, 0, 0);
             _slA.Margin           = new Thickness(0, 30, 0, 0);
         }
     }
     catch (Exception ex)
     {
     }
 }
Exemple #11
0
        protected override void OnAppearing()
        {
            base.OnAppearing();

            App.locator.PositionChanged += position_Changed;
            btnRoadBikes.Clicked        += BtnRoadBikes_Clicked;
            btnMountainBikes.Clicked    += BtnMountainBikes_Clicked;
            btnHybridBikes.Clicked      += BtnHybridBikes_Clicked;
            btnTouringBikes.Clicked     += BtnTouringBikes_Clicked;
            btnCityBikes.Clicked        += BtnCityBikes_Clicked;
            btnFoldingBikes.Clicked     += BtnFoldingBikes_Clicked;
            btnElectricBikes.Clicked    += BtnElectricBikes_Clicked;
            btnSingleSpeedBikes.Clicked += BtnSingleSpeedBikes_Clicked;
            btnAll.Clicked        += BtnAll_Clicked;
            btnChildsBike.Clicked += BtnChildsBike_Clicked;
            btnPedlec.Clicked     += BtnPedlec_Clicked;
            btnEquipment.Clicked  += BtnEquipment_Clicked;
            btnBmx.Clicked        += BtnBmx_Clicked;
            btnFatbike.Clicked    += BtnFatbike_Clicked;
            btnCruiser.Clicked    += BtnCruiser_Clicked;
            btnDutch.Clicked      += BtnDutch_Clicked;
            btnTandem.Clicked     += BtnTandem_Clicked;
            btnUnicycle.Clicked   += BtnUnicycle_Clicked;

            btnS.Clicked  += BtnS_Clicked;
            btnM.Clicked  += BtnM_Clicked;
            btnL.Clicked  += BtnL_Clicked;
            btnXl.Clicked += BtnXl_Clicked;

            btnMan.Clicked    += BtnMan_Clicked;
            btnWomen.Clicked  += BtnWomen_Clicked;
            btnUnisex.Clicked += BtnUnisex_Clicked;


            btnNew.Clicked       += BtnNew_Clicked;
            btnLikeNew.Clicked   += BtnLikeNew_Clicked;
            btnRidable.Clicked   += BtnRidable_Clicked;
            btnUnridable.Clicked += BtnUnridable_Clicked;

            btnRetailer.Clicked += BtnRetailer_Clicked;
            btnPrivate.Clicked  += BtnPrivate_Clicked;

            btnBuy.Clicked  += BtnBuy_Clicked;
            btnRent.Clicked += BtnRent_Clicked;

            btnMore.Clicked += BtnMore_Clicked;


            sliderPrice.UpperValueChanged    += SliderPrice_UpperValueChanged;
            sliderPrice.LowerValueChanged    += SliderPrice_LowerValueChanged;
            sliderDistance.UpperValueChanged += SliderDistance_UpperValueChanged;
            sliderDistance.LowerValueChanged += SliderDistance_LowerValueChanged;
            btnAll.BackgroundColor            = Color.FromHex("#20D1C8");
            _typeOfBikes = null;

            StaticDataModel._CurrentContext.IsGestureEnabled = false;

            if (StaticMethods.IsIpad())
            {
                PrepareUI();
            }
        }