summaryrefslogtreecommitdiffstats
path: root/win/C#/frmDvdInfo.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2007-08-24 21:10:32 +0000
committersr55 <[email protected]>2007-08-24 21:10:32 +0000
commit2548077aee301044b45aca605f6949fec78903a9 (patch)
tree53473ca73979892b2118cbf57c93dd704ab67bcf /win/C#/frmDvdInfo.cs
parent056b3e7f595b417c956b633ab20e79f6747aa70e (diff)
WinGui:
- Fixed View DVD Information window not loading the dvdinfo.dat file every time the window is launched. - Fixed a small file path issue with frmReadDVD git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@865 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmDvdInfo.cs')
-rw-r--r--win/C#/frmDvdInfo.cs42
1 files changed, 26 insertions, 16 deletions
diff --git a/win/C#/frmDvdInfo.cs b/win/C#/frmDvdInfo.cs
index 3b2cfd87d..b4160200c 100644
--- a/win/C#/frmDvdInfo.cs
+++ b/win/C#/frmDvdInfo.cs
@@ -19,7 +19,32 @@ namespace Handbrake
{
InitializeComponent();
this.rtf_dvdInfo.Text = string.Empty;
+
+ }
+
+ /*public void HandleParsedData(object Sender, string Data)
+ {
+ if (this.InvokeRequired)
+ {
+ this.BeginInvoke(new Parsing.DataReadEventHandler(HandleParsedData), new object[] { Sender, Data });
+ return;
+ }
+ this.rtf_dvdInfo.AppendText(Data + System.Environment.NewLine);
+ }*/
+ private void btn_close_Click(object sender, EventArgs e)
+ {
+ this.Hide();
+ }
+
+ private void frmDvdInfo_Load(object sender, EventArgs e)
+ {
+ this.rtf_dvdInfo.Text = string.Empty;
+ readFile();
+ }
+
+ private void readFile()
+ {
try
{
string appPath = Application.StartupPath.ToString();
@@ -36,24 +61,9 @@ namespace Handbrake
sr.Close();
}
catch (Exception)
- {
- // Don't do anything
- }
- }
-
- /*public void HandleParsedData(object Sender, string Data)
- {
- if (this.InvokeRequired)
{
- this.BeginInvoke(new Parsing.DataReadEventHandler(HandleParsedData), new object[] { Sender, Data });
- return;
+ // Don't do anything
}
- this.rtf_dvdInfo.AppendText(Data + System.Environment.NewLine);
- }*/
-
- private void btn_close_Click(object sender, EventArgs e)
- {
- this.Hide();
}
/*protected override void OnClosing(CancelEventArgs e)