public override void DidFinishLaunching(NSNotification notification) { Forms.Init(); CeilidhLoader.LoadCeilidh(new CeilidhStartOptions(), x => { x.AddManaged <MacUnitLoader>(); }); }
public static void Main(string[] args) { var app = new Application(Platforms.Wpf); var context = CeilidhLoader.ExecuteCeilidhAsync().Result; if (context.TryGetSingleton(out IEtoStartUnit startUnit)) { startUnit.Execute(app); } }
public static void Main(string[] args) { Gtk.Application.Init(); Forms.Init(); CeilidhLoader.LoadCeilidh(new CeilidhStartOptions(), x => { x.AddManaged <GtkUnitLoader>(); }); Gtk.Application.Run(); }
protected override async void OnStartup(StartupEventArgs e) { Forms.Init(); DesktopNotificationManagerCompat.RegisterActivator <WpfNotificationActivator>(); var thread = new Thread(() => { var a = new MSScriptControl.ScriptControl { Language = "jScript" }; a.AddObject("test", new Test(), true); var res = a.Eval("test.b(1)"); }); thread.SetApartmentState(ApartmentState.STA); thread.Start(); await CeilidhLoader.LoadCeilidhAsync(new CeilidhStartOptions(), x => { x.AddManaged <WpfUnitLoader>(); }); }