/[EmuXPortal]/branches/uienhancements/EmuXPortal/Form1.cs
ViewVC logotype

Diff of /branches/uienhancements/EmuXPortal/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 55 by william, Sun Apr 8 13:25:33 2012 UTC revision 56 by william, Sun Apr 8 13:45:24 2012 UTC
# Line 11  using EmuXPortal.Logging; Line 11  using EmuXPortal.Logging;
11  using System.Diagnostics;  using System.Diagnostics;
12  using System.Reflection;  using System.Reflection;
13  using System.Threading;  using System.Threading;
 using Utilities.TransparentControls;  
14    
15  namespace EmuXPortal  namespace EmuXPortal
16  {  {
# Line 232  namespace EmuXPortal Line 231  namespace EmuXPortal
231              Stopwatch t = e.Argument as Stopwatch;              Stopwatch t = e.Argument as Stopwatch;
232              RomParser parser = new RomParser(CurrentSelectedRom);              RomParser parser = new RomParser(CurrentSelectedRom);
233    
234              ProgressBarWithPercentageLabel bar = new ProgressBarWithPercentageLabel();              ProgressBar bar = new ProgressBar();
235              AddGameControl(bar);              AddGameControl(bar);
236              UpdateGameControls();              UpdateGameControls();
237              Application.DoEvents();              Application.DoEvents();
238              Thread.Sleep(10);              Thread.Sleep(10);
239              bar.Invoke(new MethodInvoker(delegate              bar.Invoke(new MethodInvoker(delegate
240              {              {
241                  bar.Message = "Please Wait...";                  //bar.Message = "Please Wait...";
242                  bar.ShowPercentageLabel = true;                  //bar.ShowPercentageLabel = true;
243                  bar.Margin = new System.Windows.Forms.Padding(0);                  bar.Margin = new System.Windows.Forms.Padding(0);
244                  bar.Size = new Size(GetFormWidth() - 25, 100);                  bar.Size = new Size(GetFormWidth() - 25, 100);
245              }));              }));
# Line 289  namespace EmuXPortal Line 288  namespace EmuXPortal
288              PlatformParser parser = new PlatformParser(Config.RomPath);              PlatformParser parser = new PlatformParser(Config.RomPath);
289              double count = 0;              double count = 0;
290              double total_count = parser.Platforms.Count;              double total_count = parser.Platforms.Count;
291              ProgressBarWithPercentageLabel bar = new ProgressBarWithPercentageLabel();              ProgressBar bar = new ProgressBar();
292              AddPlatformControl(bar);               AddPlatformControl(bar);
293              UpdatePlatformControls();              UpdatePlatformControls();
294              Application.DoEvents();              Application.DoEvents();
295              Thread.Sleep(10);              Thread.Sleep(10);

Legend:
Removed from v.55  
changed lines
  Added in v.56

  ViewVC Help
Powered by ViewVC 1.1.22