private void Initialize() { loadSettings(); SetState(new StateLoggedOff(this)); trayIcon.ShowBalloonTip(2000); _autoUpdate = new AutoUpdater(ConfigurationManager.AppSettings["AutoUpdateURL"], new TimeSpan(int.Parse(ConfigurationManager.AppSettings["VersionUpdateCheckIntervalHours"]), 0, 0)); _autoUpdate.Run(); MoveWindowToCenter(); loginWithPrompt(); }