summaryrefslogtreecommitdiffstats
path: root/win/CS/frmMain.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/frmMain.cs')
-rw-r--r--win/CS/frmMain.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/win/CS/frmMain.cs b/win/CS/frmMain.cs
index 884c4a4f4..ff3594a65 100644
--- a/win/CS/frmMain.cs
+++ b/win/CS/frmMain.cs
@@ -91,7 +91,7 @@ namespace Handbrake
// We have a drive, selected as a folder.
if (this.sourcePath.EndsWith("\\"))
{
- drives = UtilityService.GetDrives();
+ drives = GeneralUtilities.GetDrives();
foreach (DriveInformation item in drives)
{
if (item.RootDirectory.Contains(this.sourcePath))
@@ -152,7 +152,7 @@ namespace Handbrake
// Clear the log files in the background
if (Settings.Default.clearOldLogs)
{
- Thread clearLog = new Thread(() => UtilityService.ClearLogFiles(30));
+ Thread clearLog = new Thread(() => GeneralUtilities.ClearLogFiles(30));
clearLog.Start();
}
@@ -1531,9 +1531,7 @@ namespace Handbrake
}
// Update the Duration
- lbl_duration.Text =
- Main.CalculateDuration(drop_chapterStart.SelectedIndex, drop_chapterFinish.SelectedIndex, selectedTitle)
- .ToString();
+ lbl_duration.Text = this.selectedTitle.CalculateDuration(drop_chapterStart.SelectedIndex, drop_chapterFinish.SelectedIndex).ToString();
// Run the Autonaming function
if (Properties.Settings.Default.autoNaming)
@@ -2337,7 +2335,7 @@ namespace Handbrake
return;
}
- drives = UtilityService.GetDrives();
+ drives = GeneralUtilities.GetDrives();
List<ToolStripMenuItem> menuItems = new List<ToolStripMenuItem>();
foreach (DriveInformation drive in drives)