public static Init ( System.Platform platform, ToolkitType DefaultToolKit, ToolkitType supportedToolkits ) : void | ||
platform | System.Platform | |
DefaultToolKit | ToolkitType | |
supportedToolkits | ToolkitType | |
return | void |
static void Main(string[] args) { Settings.Init(Platform.Linux, ToolkitType.Gtk3, new[] { ToolkitType.Gtk3 }); Application.Initialize(ToolkitType.Gtk3); var window = new HeaderBarWindow(args); window.Show(); Application.Run(); }
static void Main(string[] args) { Settings.Init(Platform.Windows, ToolkitType.Wpf, new[] { ToolkitType.Gtk, ToolkitType.Wpf }); Application.Initialize(Settings.GetToolkit()); var window = new MainWindowBase(args); window.Show(); Application.Run(); }
static void Main(string[] args) { Settings.Init(Platform.Linux, ToolkitType.Gtk, new[] { ToolkitType.Gtk }); Application.Initialize(ToolkitType.Gtk); var window = new MainWindowBase(args); window.Show(); Application.Run(); }
static void Main(string[] args) { bool restart = true; while (restart) { Settings.Init(); Application.Initialize(Settings.GetToolkit()); MainWindow window = new MainWindow(); window.Show(); if (args != null && args.Length > 0) { var projectFilePath = string.Join(" ", args); window.Open(projectFilePath); } Application.Run(); restart = false; window.Dispose(); } }