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(); } }
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 ?"); } }
private void backgroundWorker_ProccessSize_DoWork(object sender, DoWorkEventArgs e) { backgroundWorker_ProccessSize.ReportProgress(-1, "Size: " + tmpAdbFile.GetLengthDouble().humanReadable()); }