void SetTextAndColor()
        {
            UkName.Text = Settings.MobileSettings.main_name;


            FrameBtnHistory.BorderColor = hex;
            FrameBtnSaldos.BorderColor  = hex;
            LabelSaldos.TextColor       = hex;
            LabelHistory.TextColor      = hex;

            Color hexColor = (Color)Application.Current.Resources["MainColor"];

            //IconViewLogin.SetAppThemeColor(IconView.ForegroundProperty, hexColor, Color.White);
            //IconViewTech.SetAppThemeColor(IconView.ForegroundProperty, hexColor, Color.White);
            GoodsLayot.SetAppThemeColor(PancakeView.BorderColorProperty, hexColor, Color.Transparent);
            // LabelTech.SetAppThemeColor(Label.TextColorProperty, hexColor, Color.White);
            FrameAddIdent.SetAppThemeColor(Frame.BorderColorProperty, hexColor, Color.FromHex("#494949"));

            if (Settings.Person != null)
            {
                if (Settings.Person.Accounts != null)
                {
                    if (Settings.Person.Accounts.Count == 0)
                    {
                        AccExistsLbl.IsVisible = true;
                        //AccExistsLbl.Text = AppResources.NoAccounts;
                    }
                }
            }
        }
        void SetText()
        {
            //ShopName.Text = Settings.MobileSettings.main_name;
            //LabelPhone.Text = "+" + Settings.Person.Phone;
            Color hexColor = (Color)Application.Current.Resources["MainColor"];

            IconViewTech.SetAppThemeColor(IconView.ForegroundProperty, hexColor, Color.White);
            LabelTech.SetAppThemeColor(Label.TextColorProperty, hexColor, Color.White);
            PancakeViewKind.SetAppThemeColor(PancakeView.BorderColorProperty, hexColor, Color.Transparent);
            GoodsLayot.SetAppThemeColor(PancakeView.BorderColorProperty, hexColor, Color.White);
            PancakeBot.SetAppThemeColor(PancakeView.BorderColorProperty, hexColor, Color.Transparent);
        }
Exemple #3
0
        void SetText()
        {
            UkName.Text = Settings.MobileSettings.main_name;

            //SwitchQuest.ThumbColor = Color.Black;
            SwitchQuest.OnColor = (Color)Application.Current.Resources["MainColor"];
            Color hexColor = (Color)Application.Current.Resources["MainColor"];

            //IconViewTech.SetAppThemeColor(IconView.ForegroundProperty, hexColor, Color.White);
            GoodsLayot.SetAppThemeColor(PancakeView.BorderColorProperty, hexColor, Color.Transparent);
            //LabelTech.SetAppThemeColor(Label.TextColorProperty, hexColor, Color.White);
            additionalList.RefreshControlColor = hexColor;
        }
        void SetText()
        {
            UkName.Text = Settings.MobileSettings.main_name;


            SwitchApp.OnColor = hex;
            //IconAddApp.Foreground = Color.White;
            Color hexColor = (Color)Application.Current.Resources["MainColor"];

            //IconViewLogin.SetAppThemeColor(IconView.ForegroundProperty, hexColor, Color.White);
            //IconViewTech.SetAppThemeColor(IconView.ForegroundProperty, hexColor, Color.White);

            GoodsLayot.SetAppThemeColor(PancakeView.BorderColorProperty, hexColor, Color.Transparent);
            //LabelTech.SetAppThemeColor(Label.TextColorProperty, hexColor, Color.White);
        }
        void SetText()
        {
            UkName.Text = Settings.MobileSettings.main_name;

            Picker.Title = account.Ident;
            // IconViewUslugi.Foreground = (Color)Application.Current.Resources["MainColor"];
            Labelseparator.BackgroundColor = (Color)Application.Current.Resources["MainColor"];
            FrameBtnLogin.BackgroundColor  = (Color)Application.Current.Resources["MainColor"];
            LabelSaldos.TextColor          = (Color)Application.Current.Resources["MainColor"];
            LabelHistory.TextColor         = (Color)Application.Current.Resources["MainColor"];
            FrameBtnHistory.BorderColor    = (Color)Application.Current.Resources["MainColor"];
            FrameBtnSaldos.BorderColor     = (Color)Application.Current.Resources["MainColor"];
            Color hexColor = (Color)Application.Current.Resources["MainColor"];

            //IconViewTech.SetAppThemeColor(IconView.ForegroundProperty, hexColor, Color.White);
            GoodsLayot.SetAppThemeColor(PancakeView.BorderColorProperty, hexColor, Color.Transparent);
            //LabelTech.SetAppThemeColor(Label.TextColorProperty, hexColor, Color.White);
            Frame.SetAppThemeColor(Xamarin.Forms.Frame.BorderColorProperty, hexColor, Color.White);

            SetPays();
            SwitchInsurance.IsToggled = true;
        }
Exemple #6
0
        public BasketPageNew(ShopViewModel vm)
        {
            InitializeComponent();
            Analytics.TrackEvent("Корзина магазина");

            if (Device.RuntimePlatform == Device.iOS)
            {
                int statusBarHeight = DependencyService.Get <IStatusBar>().GetHeight();
                Pancake.Padding = new Thickness(0, statusBarHeight, 0, 0);
            }

            //BorderColor = "{AppThemeBinding Light={x:DynamicResource MainColor}, Dark=#e7e7e7}"
            hex = (Color)Application.Current.Resources["MainColor"];
            Color hexColor = (Color)Application.Current.Resources["MainColor"];

            GoodsLayot.SetAppThemeColor(PancakeView.BorderColorProperty, hexColor, Color.White);
            PancakeBot.SetAppThemeColor(PancakeView.BorderColorProperty, hexColor, Color.Transparent);
            var profile = new TapGestureRecognizer();

            profile.Tapped += async(s, e) =>
            {
                if (Navigation.NavigationStack.FirstOrDefault(x => x is ProfilePage) == null)
                {
                    await Navigation.PushAsync(new ProfilePage());
                }
            };
            IconViewProfile.GestureRecognizers.Add(profile);

            var techSend = new TapGestureRecognizer();

            techSend.Tapped += async(s, e) => { await Navigation.PushAsync(new AppPage()); };
            LabelTech.GestureRecognizers.Add(techSend);


            BindingContext = vm;
        }
Exemple #7
0
        public BasketPage(Dictionary <string, Goods> goodset, ShopPage shopPage, AdditionalService additional)
        {
            //заглушка для номера заказа
            orderNum = " №" + Convert.ToString(1234567890);

            Goodset     = goodset;
            _shopPage   = shopPage;
            _Additional = additional;
            InitializeComponent();
            switch (Device.RuntimePlatform)
            {
            case Device.iOS:
                // BackgroundColor = Color.White;
                // ImageTop.Margin = new Thickness(0, 0, 0, 0);
                // StackLayout.Margin = new Thickness(0, 33, 0, 0);
                break;

            case Device.Android:
            default:
                break;
            }
            try
            {
                Settings.AppPAge.Remove(this);
                Settings.AppPAge.Add(this);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
            NavigationPage.SetHasNavigationBar(this, false);
            var backClick = new TapGestureRecognizer();

            backClick.Tapped += async(s, e) =>
            {
                UpdateShop();
                try
                {
                    _ = await Navigation.PopAsync();
                }
                catch { }
            };

            BackStackLayout.GestureRecognizers.Add(backClick);
            var techSend = new TapGestureRecognizer();

            techSend.Tapped += async(s, e) => { await Navigation.PushAsync(new AppPage()); };
            LabelTech.GestureRecognizers.Add(techSend);

            //var PayPageShop = new TapGestureRecognizer();
            //PayPageShop.Tapped += async (s, e) =>
            //{
            //    if (!LabelPriceBuscket.Text.Equals("0 \u20BD"))
            //    {
            //        await Navigation.PushAsync(new PayShopPage(Goodset, _Additional));
            //    }
            //    else
            //    {
            //        await DisplayAlert(AppResources.ErrorTitle, "Корзина пуста", "OK");
            //    }
            //};
            //StackLayoutBasket.GestureRecognizers.Add(PayPageShop);
            hex = (Color)Application.Current.Resources["MainColor"];
            Color hexColor = (Color)Application.Current.Resources["MainColor"];

            IconViewTech.SetAppThemeColor(IconView.ForegroundProperty, hexColor, Color.White);
            LabelTech.SetAppThemeColor(Label.TextColorProperty, hexColor, Color.White);
            GoodsLayot.SetAppThemeColor(PancakeView.BorderColorProperty, hexColor, Color.White);
            PancakeBot.SetAppThemeColor(PancakeView.BorderColorProperty, hexColor, Color.Transparent);
            //SetText();
            SetPriceAndWeight();
            setBasket();
            BindingContext = this;
        }