public static void Main(string[] args) { if (RuntimeInfo.IsLinux) { Application.Initialize(ToolkitType.Gtk); } else if (RuntimeInfo.IsMacOSX) { Application.Initialize(ToolkitType.Gtk); // TODO: Cocoa } else if (RuntimeInfo.IsWindows) { Application.Initialize(ToolkitType.Wpf); } else { // In this case they're probably using some flavor of Unix // which probably has some flavor of GTK available Application.Initialize(ToolkitType.Gtk); } UserSettings.Local = new UserSettings(); UserSettings.Local.Load(); var thread = new Thread(KeepSessionAlive); thread.IsBackground = true; thread.Priority = ThreadPriority.Lowest; Window = new LauncherWindow(); thread.Start(); Window.Show(); Window.Closed += (sender, e) => Application.Exit(); Application.Run(); Window.Dispose(); thread.Abort(); }
public static void Main(string[] args) { if (RuntimeInfo.IsLinux) Application.Initialize(ToolkitType.Gtk); else if (RuntimeInfo.IsMacOSX) Application.Initialize(ToolkitType.Gtk); // TODO: Cocoa else if (RuntimeInfo.IsWindows) Application.Initialize(ToolkitType.Wpf); else // In this case they're probably using some flavor of Unix // which probably has some flavor of GTK availble Application.Initialize(ToolkitType.Gtk); UserSettings.Local = new UserSettings(); UserSettings.Local.Load(); var thread = new Thread(KeepSessionAlive); thread.IsBackground = true; thread.Priority = ThreadPriority.Lowest; Window = new LauncherWindow(); thread.Start(); Window.Show(); Window.Closed += (sender, e) => Application.Exit(); Application.Run(); Window.Dispose(); thread.Abort(); }
public static void Main(string[] args) { if (RuntimeInfo.IsLinux) { try { Application.Initialize(ToolkitType.Gtk3); } catch { Application.Initialize(ToolkitType.Gtk); } } else if (RuntimeInfo.IsMacOSX) { Application.Initialize(ToolkitType.Gtk); // TODO: Cocoa } else if (RuntimeInfo.IsWindows) { Application.Initialize(ToolkitType.Wpf); } UserSettings.Local = new UserSettings(); UserSettings.Local.Load(); var thread = new Thread(KeepSessionAlive); thread.IsBackground = true; thread.Priority = ThreadPriority.Lowest; Window = new LauncherWindow(); thread.Start(); Window.Show(); Window.Closed += (sender, e) => Application.Exit(); Application.Run(); Window.Dispose(); thread.Abort(); }
public static void Main(string[] args) { if (RuntimeInfo.IsLinux) Application.Initialize(ToolkitType.Gtk); else if (RuntimeInfo.IsMacOSX) Application.Initialize(ToolkitType.Gtk); else if (RuntimeInfo.IsWindows) Application.Initialize(ToolkitType.Wpf); UserSettings.Local = new UserSettings(); UserSettings.Local.Load(); var thread = new Thread(KeepSessionAlive); thread.IsBackground = true; thread.Priority = ThreadPriority.Lowest; Window = new LauncherWindow(); thread.Start(); Window.Show(); Window.Closed += (sender, e) => Application.Exit(); Application.Run(); Window.Dispose(); thread.Abort(); }