Exemplo n.º 1
0
 public static void UploadUi(SessionClient client, string busic, string uid, List <string> fullpaths, Action <SemanticObject> onOk = null)
 {
     // upload to a_attaches
     if (client == null)
     {
         MessageBox.Show("Please connect first.", "Upload With UI");
     }
     else
     {
         client.AttachFiles(fullpaths, busic ?? "a_users", uid, (c, d) => {
             SemanticObject resulved = (SemanticObject)((AnsonResp)d).Map("resulved");
             if (onOk != null)
             {
                 onOk(resulved);
             }
         });
     }
 }