예제 #1
0
        static void Main(string[] args)
        {
            NativeControlsApplication.Init(Environment.GetEnvironmentVariable("TOKEN"));

            NSApplication.Init();
            NSApplication.SharedApplication.ActivationPolicy = NSApplicationActivationPolicy.Regular;

            mainWindow = new Window(new Rectangle(0, 0, 300, 368))
            {
                Title = "Cocoa Figma Local File Sample",
            };

            Example1();
            //Example2();

            mainWindow.Show();

            NSApplication.SharedApplication.ActivateIgnoringOtherApps(true);
            NSApplication.SharedApplication.Run();
        }
예제 #2
0
 protected override void Run()
 {
     Resources.Init();
     NativeControlsApplication.Init(FigmaRuntime.Token);
 }
예제 #3
0
파일: Main.cs 프로젝트: whjvenyl/FigmaSharp
 static void Main(string[] args)
 {
     NativeControlsApplication.Init();
     NSApplication.Init();
     NSApplication.Main(args);
 }
예제 #4
0
 static void Main(string[] args)
 {
     NativeControlsApplication.Init(Environment.GetEnvironmentVariable("TOKEN"));
     NSApplication.Init();
     NSApplication.Main(args);
 }