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 |
{ |
{ |
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 |
})); |
})); |
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); |