Esempio n. 1
0
 public static void LoadFigmaFromFrameEntity(this NSView view, IFigmaDocumentContainer figmaView, List <FigmaImageView> figmaImageViews, string figmaFileName, string viewName = null, string nodeName = null)
 {
     if (figmaView != null)
     {
         LoadFigma(view, new FigmaFrameEntityResponse(figmaFileName, figmaView), figmaImageViews);
     }
     else
     {
         var alert = new NSAlert();
         alert.MessageText = string.Format("You figma file does not have a view name:'{0}'", viewName);
         if (nodeName != null)
         {
             alert.MessageText += string.Format(" or node name: '{0}'", nodeName);
         }
         alert.AddButton("Close");
         alert.RunModal();
     }
 }
Esempio n. 2
0
 public FigmaFrameEntityResponse(string document, IFigmaDocumentContainer frameEntity)
 {
     Document      = document;
     FigmaMainNode = frameEntity;
 }