diff options
author | sr55 <[email protected]> | 2009-06-26 15:12:41 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-06-26 15:12:41 +0000 |
commit | f34a12947c422484c04a7f3bf12120996c7f293e (patch) | |
tree | d30ebff859a5cf3650f3ac97553c059778c73b52 /win/C#/frmOptions.cs | |
parent | 665406fbd1ff2f3e10f2a85e9d5691e9d4456e89 (diff) |
WinGui:
- Removed the group boxes on the main window to save a bit of space.
- Main Window source display is the source filename or folder only. The text box is no longer used.
- Added two new options: "Clear Log History" and "View Log Directory"
- Changed log file format to "DateTime DestFileName.txt" to "DestFileName DateTime.txt"
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2626 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmOptions.cs')
-rw-r--r-- | win/C#/frmOptions.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/win/C#/frmOptions.cs b/win/C#/frmOptions.cs index 2f4496a1e..de739781b 100644 --- a/win/C#/frmOptions.cs +++ b/win/C#/frmOptions.cs @@ -6,6 +6,7 @@ using System;
using System.Windows.Forms;
+using Handbrake.Functions;
namespace Handbrake
{
@@ -229,6 +230,22 @@ namespace Handbrake Properties.Settings.Default.saveLogPath = text_logPath.Text;
}
+ private void btn_viewLogs_Click(object sender, EventArgs e)
+ {
+ string logDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\logs";
+ string windir = Environment.GetEnvironmentVariable("WINDIR");
+ System.Diagnostics.Process prc = new System.Diagnostics.Process();
+ prc.StartInfo.FileName = windir + @"\explorer.exe";
+ prc.StartInfo.Arguments = logDir;
+ prc.Start();
+ }
+
+ private void btn_clearLogs_Click(object sender, EventArgs e)
+ {
+ Main.clearLogs();
+ MessageBox.Show(this, "HandBrake's Log file directory has been cleared!", "Notice", MessageBoxButtons.OK,
+ MessageBoxIcon.Information);
+ }
#endregion
#region Advanced
|