private void OnPrimaryActionButtonClicked(object sender, EventArgs e)
        {
            //Get Settings in Database
            SQL_Commander.Get_Settings();
            var parent = (WalkthroughVariantPage)Parent;

            parent.FinshTheWalkThroutPages();
        }
Пример #2
0
        public App()
        {
            try
            {
                try //Language
                {
                    L10n.SetLocale();
                    var netLanguage = DependencyService.Get <IMethods>().GetCurrent();
                    AppResources.Culture = new CultureInfo(netLanguage);
                }
                catch (Exception ex)
                {
                    var exception = ex.ToString();
                }

                InitializeComponent();

                SQL_Entity.Connect();

                var data = SQL_Commander.Get_Settings();

                if (data == "true")
                {
                    if (Settings.VimeoStyle)
                    {
                        var navigationPage = new NavigationPage(new MainTabbed_Page())
                        {
                        };
                        navigationPage.BarBackgroundColor = Color.FromHex(Settings.MainColor);
                        navigationPage.BarTextColor       = Color.FromHex("#ffff");
                        navigationPage.Title   = Settings.Application_Name;
                        navigationPage.Padding = new Thickness(0, 0, 0, 0);
                        Settings.YoutubeStyle  = false;
                        MainPage = navigationPage;
                    }

                    if (Settings.YoutubeStyle)
                    {
                        MainPage = new NavigationPage(new BottomTabbedPage());
                    }

                    //MainPage = new NavigationPage(new WalkthroughVariantPage());
                }
                else
                {
                    MainPage = new NavigationPage(new WalkthroughVariantPage());
                }
            }
            catch (Exception ex)
            {
                var exception = ex.ToString();
            }
        }