Beispiel #1
0
        public void Init()
        {
            FigmaControlsApplication.Init(Resources.PublicToken);
            converters = FigmaControlsContext.Current.GetConverters(true);

            provider = new ControlRemoteNodeProvider();
            provider.Load("sjjkWQHVrvxVDuQnm7AFMS");
        }
Beispiel #2
0
        public void Init()
        {
            NSApplicationInitializer.Initialize();
            FigmaControlsApplication.Init(Resources.PublicToken);
            converters = FigmaControlsContext.Current.GetConverters(true);

            provider = new ControlRemoteNodeProvider();
            provider.Load("NSYKxXXvFAoEsf0c42NaHh");
        }
Beispiel #3
0
        public void Init()
        {
            NSApplicationInitializer.Initialize();
            FigmaControlsApplication.Init(Resources.PublicToken);
            converters = FigmaControlsContext.Current.GetConverters(true);

            provider = new ControlRemoteNodeProvider();
            provider.Load("oc3h9FQGFDtiRcR5goEnzy");
        }
Beispiel #4
0
 public AppDelegate()
 {
     try
     {
         FigmaControlsApplication.Init(TokenStore.Current.GetToken());
     }
     catch (System.Exception ex)
     {
         Console.WriteLine(ex);
     }
 }
Beispiel #5
0
        static void Main(string[] args)
        {
            FigmaControlsApplication.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();
        }
Beispiel #6
0
 protected override void Run()
 {
     Resources.Init();
     FigmaControlsApplication.Init(FigmaRuntime.Token);
 }
Beispiel #7
0
 protected override void Run()
 {
     ExtensionLoggingService.Init();
     Resources.Init();
     FigmaControlsApplication.Init(FigmaRuntime.Token);
 }
Beispiel #8
0
 static void Main(string[] args)
 {
     FigmaControlsApplication.Init(Environment.GetEnvironmentVariable("TOKEN"));
     NSApplication.Init();
     NSApplication.Main(args);
 }