|
1 | | -ο»Ώusing Microsoft.VisualBasic.FileIO; |
2 | | -using QuickLibrary; |
| 1 | +ο»Ώusing QuickLibrary; |
3 | 2 | using System; |
4 | 3 | using System.Collections.Generic; |
5 | 4 | using System.Diagnostics; |
@@ -568,7 +567,7 @@ public void openImage(Bitmap bitmap, string directoryName, string fileName) |
568 | 567 | private void UpdateSizeLabel() |
569 | 568 | { |
570 | 569 | sizeLabel.Text = " " + LangMan.Get("size") + ": " + originalImage.Width.ToString() + " x " + originalImage.Height.ToString(); |
571 | | - if (currentFolder != null) sizeLabel.Text += " (" + Converter.PathToSize(Path.Combine(currentFolder, currentFile)) + ")"; |
| 570 | + if (currentFolder != null) sizeLabel.Text += " (" + FileMan.GetFileSizeStr(Path.Combine(currentFolder, currentFile)) + ")"; |
572 | 571 | } |
573 | 572 |
|
574 | 573 | private void CheckAutoZoomNeeded() |
@@ -1321,15 +1320,15 @@ private void deleteButton_Click(object sender, EventArgs e) |
1321 | 1320 | if (d == DialogResult.Yes) |
1322 | 1321 | { |
1323 | 1322 | string path = Path.Combine(currentFolder, currentFile); |
1324 | | - if (FileSystem.FileExists(path)) |
| 1323 | + if (File.Exists(path)) |
1325 | 1324 | { |
1326 | 1325 | originalImage.Dispose(); |
1327 | 1326 | originalImage = null; |
1328 | 1327 | pictureBox.Image.Dispose(); |
1329 | 1328 | pictureBox.Image = null; |
1330 | 1329 |
|
1331 | 1330 | if (NextFile() <= 1) closeFile(); |
1332 | | - FileSystem.DeleteFile(path, UIOption.OnlyErrorDialogs, RecycleOption.SendToRecycleBin, UICancelOption.DoNothing); |
| 1331 | + FileMan.MoveFileOrFolderToRecycleBin(path); |
1333 | 1332 | } |
1334 | 1333 | else |
1335 | 1334 | { |
@@ -2336,7 +2335,7 @@ private void wallpaperBtn_Click(object sender, EventArgs e) |
2336 | 2335 | private void directoryLabel_Click(object sender, EventArgs e) |
2337 | 2336 | { |
2338 | 2337 | string path = Path.Combine(currentFolder, currentFile); |
2339 | | - if (FileSystem.FileExists(path)) |
| 2338 | + if (File.Exists(path)) |
2340 | 2339 | { |
2341 | 2340 | string argument = "/select, \"" + path + "\""; |
2342 | 2341 | Process.Start("explorer.exe", argument); |
|
0 commit comments