Ejemplo n.º 1
0
 private void backgroundWorker_getSizeFile_DoWork(object sender, DoWorkEventArgs e)
 {
     if (isOneFile)
     {
         Size = oneFile.GetLengthDouble().humanReadable();
     }
     else
     {
         foreach (ADBFile onefile in multiFiles)
         {
             SizeDouble += onefile.GetLengthDouble();
         }
         Size = SizeDouble.humanReadable();
     }
 }
Ejemplo n.º 2
0
 private string messageForDelete()
 {
     if (listView_files.SelectedItems.Count == 1)
     {
         ADBFile tmpfile = ReturnAdbFileFromLVSelectItem(listView_files.SelectedItems[0]);
         return("are you sure Delete" + " \"" + tmpfile.Name.DecodingText().Replace("\\", "") + " \"  ?\nSize: " + tmpfile.GetLengthDouble().humanReadable());
     }
     else
     {
         return("are you sure Delete  \" " + listView_files.SelectedItems.Count.ToString() + " \"  File & Directory ?");
     }
 }
Ejemplo n.º 3
0
 private void backgroundWorker_ProccessSize_DoWork(object sender, DoWorkEventArgs e)
 {
     backgroundWorker_ProccessSize.ReportProgress(-1, "Size: " + tmpAdbFile.GetLengthDouble().humanReadable());
 }