public void RecycleInitialScreens() { if (_logonScreen != null) { _logonScreen.Recycle(); } _logonScreen = null; if (_progressScreen != null) { _progressScreen.Recycle(); } _progressScreen = null; }
void StartApplication(Settings settings) { Settings = settings; Settings.ReadSettings(); Settings.WriteSettings(); _logonScreen = new LogonScreen(_baseActivity, Settings, LoadApplication); _progressScreen = new ProgressScreen(_baseActivity, Settings); AppContext = new ApplicationContext(_baseActivity, Settings, LoadComplete); AppContext.LoadingProgress += _progressScreen.Progress; AppContext.ReturnToStartMenu += OpenStartScreen; ExceptionHandler = new ExceptionHandler(Settings, _baseActivity, AppContext); HandleLastError(Prepare); }
protected override void Start() { base.Start(); logonScreen = FindObjectOfType <LogonScreen>(); }