summaryrefslogtreecommitdiffstats
path: root/win/C#/frmActivityWindow.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-08-27 23:45:44 +0000
committersr55 <[email protected]>2008-08-27 23:45:44 +0000
commitc1f31822b78859305328750ca0adcd0b1699f690 (patch)
tree9751e09ecee8a9199e5f49ae0af351f71a8be794 /win/C#/frmActivityWindow.cs
parent1833f566d3f9c7fbe0ef61b4f9304b6e0f7fddb5 (diff)
WinGui:
- Code Refactoring and optimization to numerous files git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1655 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmActivityWindow.cs')
-rw-r--r--win/C#/frmActivityWindow.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/win/C#/frmActivityWindow.cs b/win/C#/frmActivityWindow.cs
index fad0efcad..f4f6b0442 100644
--- a/win/C#/frmActivityWindow.cs
+++ b/win/C#/frmActivityWindow.cs
@@ -6,6 +6,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
@@ -103,9 +104,10 @@ namespace Handbrake
private void updateTextFromThread()
{
string text = "";
- ArrayList data = readFile();
+ List<string> data = readFile();
+ int count = data.Count;
- while (position < data.Count)
+ while (position < count)
{
text = data[position].ToString();
if (data[position].ToString().Contains("has exited"))
@@ -132,11 +134,11 @@ namespace Handbrake
}
}
- private ArrayList readFile()
+ private List<string> readFile()
{
// Ok, the task here is to, Get an arraylist of log data.
// And update some global varibles which are pointers to the last displayed log line.
- ArrayList logData = new ArrayList();
+ List<string> logData = new List<string>();
try
{