コード例 #1
0
        public static void NextStep(bool themeReadyOverride = false)
        {
            if (!IsLocationReady())
            {
                LocationManager.ChangeLocation();

                if (JsonConfig.firstRun)
                {
                    AppContext.ShowPopup(_("Welcome! Please enter your location so the app can " +
                                           "determine sunrise and sunset times."));
                }
            }
            else if (!IsThemeReady() && !themeReadyOverride)  // Override if theme=None chosen
            {
                if (ThemeManager.filesVerified)
                {
                    ThemeManager.SelectTheme();
                }
            }
            else if (JsonConfig.firstRun)
            {
                AppContext.ShowPopup(_("The app is still running in the background. You can " +
                                       "access it at any time by clicking on the icon in the system tray."));

                JsonConfig.firstRun = false;  // Don't show this message again
            }
        }
コード例 #2
0
 private static void OnLocationItemClick(object sender, EventArgs e)
 {
     LocationManager.ChangeLocation();
 }