public static bool compareHash(string hashToCompare)
 {
     foreach (GoogleDriveFile file in GoogleDriveAPIV3.listDriveFiles())
     {
         if (file.hash == hashToCompare)
         {
             return(true);
         }
     }
     return(false);
 }
示例#2
0
        private void updateDataGridView(string name = null, string type = null)
        {
            if (InvokeRequired)
            {
                Invoke(new Action <string, string>(updateDataGridView), new object[] { name, type });
                return;
            }

            dtDriveFiles = null;
            dtDriveFiles = Gtools.ToDataTable <GoogleDriveFile>(GoogleDriveAPIV3.listDriveFiles(name, type));
            dgvFilesFromDrive.DataSource = dtDriveFiles;
        }