summaryrefslogtreecommitdiffstats
path: root/win/C#/frmActivityWindow.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-05-07 20:43:49 +0000
committersr55 <[email protected]>2008-05-07 20:43:49 +0000
commitc99236b3cd8fff2b67e93fb8a8c3a8f76dca223a (patch)
treefc2035a531fea21ed5206a93ac3cccdfc6ef6ae6 /win/C#/frmActivityWindow.cs
parent707962e0c733ca594a790ec5213eb85455b7dd64 (diff)
WinGui:
- Got rid of the DVD info window. DVD information can now be read from the activity window. - Removed some unused code calls to frmDvdInfo. - Changed frmActivityWindow design, removed all buttons, text window now expands as the window size grows. Basically, the window is identical to the MacGUI window now. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1454 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmActivityWindow.cs')
-rw-r--r--win/C#/frmActivityWindow.cs26
1 files changed, 4 insertions, 22 deletions
diff --git a/win/C#/frmActivityWindow.cs b/win/C#/frmActivityWindow.cs
index 4864df680..ebee0ea42 100644
--- a/win/C#/frmActivityWindow.cs
+++ b/win/C#/frmActivityWindow.cs
@@ -24,19 +24,15 @@ namespace Handbrake
/// </summary>
///
Thread monitorFile;
- public frmActivityWindow()
+ String read_file;
+ public frmActivityWindow(string file)
{
InitializeComponent();
this.rtf_actLog.Text = string.Empty;
monitorFile = new Thread(autoUpdate);
+ read_file = file;
}
-
- private void btn_close_Click(object sender, EventArgs e)
- {
- monitorFile.Abort();
- this.Hide();
- }
private void frmActivityWindow_Load(object sender, EventArgs e)
{
@@ -78,7 +74,7 @@ namespace Handbrake
{
// hb_encode_log.dat is the primary log file. Since .NET can't read this file whilst the CLI is outputing to it,
// we'll need to make a copy of it.
- string logFile = Path.Combine(Path.GetTempPath(), "hb_encode_log.dat");
+ string logFile = Path.Combine(Path.GetTempPath(), read_file);
string logFile2 = Path.Combine(Path.GetTempPath(), "hb_encode_log_AppReadable.dat");
// Make sure the application readable log file does not already exist. FileCopy fill fail if it does.
@@ -105,19 +101,5 @@ namespace Handbrake
return log;
}
-
- private void btn_copy_Click(object sender, EventArgs e)
- {
- if (rtf_actLog.Text != "")
- Clipboard.SetText(rtf_actLog.Text, TextDataFormat.Rtf);
- }
-
- private void btn_refresh_Click(object sender, EventArgs e)
- {
- rtf_actLog.Clear();
- rtf_actLog.Text = readFile();
- }
-
-
}
} \ No newline at end of file