static void Main() { Logging.Info("+static Main()"); try { splashscreen_window.UpdateMessage("Logging in"); LoginWindow login_window = new LoginWindow(); login_window.ChooseLogin(splashscreen_window); splashscreen_window.Close(); WPFDoEvents.DoEvents(); try { application.Run(); } catch (Exception ex) { Logging.Error(ex, "Exception caught at Main() application.Run(). Disaster."); } DoShutdown(); } catch (Exception ex) { Logging.Error(ex, "Exception caught at Main(). Disaster."); } Logging.Info("-static Main()"); }
public static void ShowLoginDialog() { LoginWindow login_window = new LoginWindow(); login_window.ChooseLogin(); }