public void LoadMainPage(bool baseInit = true) { if (baseInit) { Language.SetLanguage(Parameters.Options.LanguageIndex); // set language for the app from options QRPage = new QRMainPage(); } else { QRScanner = new Scanner(); // initialize scanner class (ZXing scanner) ScanHistory = new History(); if (Parameters.Options.UseLocation) { QRLocation.InitLocation(); } QRPage.Initialize(); } }
public MenuPage(QRMainPage mainPage) { NavButtons = new Buttons(mainPage); Title = "Options"; BackgroundColor = Color.FromRgba(0.4, 0.4, 0.4, 0.4); Content = new Grid { VerticalOptions = LayoutOptions.StartAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand, HeightRequest = 200, Padding = new Thickness(10, 5, 10, 5), Margin = new Thickness(10, 43, 10, 0), BackgroundColor = Color.Black, RowDefinitions = { new RowDefinition { Height = 90 }, new RowDefinition { Height = 90 } }, ColumnDefinitions = { new ColumnDefinition { Width = 80 }, new ColumnDefinition{ Width = 80 }, new ColumnDefinition{ Width = 80 }, new ColumnDefinition{ Width = 80 } }, Children = { } }; NavButtons.InitButtons(false); }
public async void ShowDialog(QRMainPage BasePage) { var historyPage = new HistoryPage(ScanData); await BasePage.Navigation.PushPopupAsync(historyPage); }
public Buttons(QRMainPage page) { BasePage = page; }