예제 #1
0
 public override void DidFinishLaunching(NSNotification notification)
 {
     Forms.Init();
     CeilidhLoader.LoadCeilidh(new CeilidhStartOptions(), x => {
         x.AddManaged <MacUnitLoader>();
     });
 }
예제 #2
0
        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);
            }
        }
예제 #3
0
        public static void Main(string[] args)
        {
            Gtk.Application.Init();
            Forms.Init();

            CeilidhLoader.LoadCeilidh(new CeilidhStartOptions(), x =>
            {
                x.AddManaged <GtkUnitLoader>();
            });

            Gtk.Application.Run();
        }
예제 #4
0
        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>();
            });
        }