Пример #1
0
        private void TransitionViewController(object state)
        {
            var    appPreferences = new AppPreferences(this.ApplicationContext);
            string Username       = appPreferences.GetUsername();

            if (Username == "")
            {
                // No User Remembered
                appPreferences.SaveLoginSkipped(false);
                TransitionToSignIn();
            }
            else
            {
                // User exists.
                appPreferences.SaveLoginSkipped(true);

                bool MasterDBDownloaded = appPreferences.GetMasterDBDownloaded();
                if (MasterDBDownloaded)
                {
                    // Master DB Downloaded
                    TransitionToMain();
                }
                else
                {
                    // Master DB Not Found
                    TransitionToDownload();
                }
            }
        }