예제 #1
0
파일: App.cs 프로젝트: Adrianotiger/qr2web
        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();
            }
        }
예제 #2
0
        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);
        }
예제 #3
0
 public async void ShowDialog(QRMainPage BasePage)
 {
     var historyPage = new HistoryPage(ScanData);
     await BasePage.Navigation.PushPopupAsync(historyPage);
 }
예제 #4
0
 public Buttons(QRMainPage page)
 {
     BasePage = page;
 }