private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            SocketSession = new SocketSession();
            SocketSession.SetThreadQueuerForCurrentThread(UIExtensionMethods.BeginInvokeUI);

            if (App.Settings.UpdateAutomatic)
                CheckForUpdate();
            else
                UseRememberedLogin();
        }