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

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

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

revision 266 by william, Thu Mar 17 05:23:38 2016 UTC revision 270 by william, Thu Mar 17 07:01:10 2016 UTC
# Line 619  namespace EmuXPortal Line 619  namespace EmuXPortal
619              bar.ProgressColor = Color.LimeGreen;              bar.ProgressColor = Color.LimeGreen;
620              bar.Dock = DockStyle.Top;              bar.Dock = DockStyle.Top;
621    
             if (rom_flow.InvokeRequired) { rom_flow.Invoke((MethodInvoker)delegate() { rom_flow.SuspendLayout(); }); } else { rom_flow.SuspendLayout(); }  
   
622              if (this.InvokeRequired) { this.Invoke((MethodInvoker)delegate() { this.Controls.Add(bar); }); }              if (this.InvokeRequired) { this.Invoke((MethodInvoker)delegate() { this.Controls.Add(bar); }); }
623              else { this.Controls.Add(bar); }              else { this.Controls.Add(bar); }
624              bar.Invoke(new MethodInvoker(delegate { bar.Margin = new System.Windows.Forms.Padding(0); bar.Size = new Size(GetFormWidth() - 25, 100); }));              bar.Invoke(new MethodInvoker(delegate { bar.Margin = new System.Windows.Forms.Padding(0); bar.Size = new Size(GetFormWidth() - 25, 100); }));
# Line 665  namespace EmuXPortal Line 663  namespace EmuXPortal
663              }              }
664              bar.Invoke(new MethodInvoker(delegate { bar.Value = 1; bar.Update(); }));              bar.Invoke(new MethodInvoker(delegate { bar.Value = 1; bar.Update(); }));
665              if (this.InvokeRequired) { this.Invoke((MethodInvoker)delegate() { this.Controls.Remove(bar); }); } else { this.Controls.Remove(bar); }              if (this.InvokeRequired) { this.Invoke((MethodInvoker)delegate() { this.Controls.Remove(bar); }); } else { this.Controls.Remove(bar); }
666              e.Result = t;              e.Result = t;            
             if (rom_flow.InvokeRequired) { rom_flow.Invoke((MethodInvoker)delegate() { rom_flow.ResumeLayout(false); }); } else { rom_flow.ResumeLayout(false); }  
667              parser.Dispose();              parser.Dispose();
668          }          }
669          private void gameWorker_ProgressChanged(object sender, ProgressChangedEventArgs e) { }          private void gameWorker_ProgressChanged(object sender, ProgressChangedEventArgs e) { }
# Line 706  namespace EmuXPortal Line 703  namespace EmuXPortal
703  #endif  #endif
704              bar.ProgressColor = Color.LimeGreen;              bar.ProgressColor = Color.LimeGreen;
705              bar.Dock = DockStyle.Top;              bar.Dock = DockStyle.Top;
706                
             if (platform_flow.InvokeRequired) { platform_flow.Invoke((MethodInvoker)delegate() { platform_flow.SuspendLayout(); }); } else { platform_flow.SuspendLayout(); }  
   
707              if (this.InvokeRequired) { this.Invoke((MethodInvoker)delegate() { this.Controls.Add(bar); }); }              if (this.InvokeRequired) { this.Invoke((MethodInvoker)delegate() { this.Controls.Add(bar); }); }
708              else { this.Controls.Add(bar); }              else { this.Controls.Add(bar); }
709              bar.Invoke(new MethodInvoker(delegate { bar.Margin = new System.Windows.Forms.Padding(0); bar.Size = new Size(GetFormWidth() - 25, 100); }));              bar.Invoke(new MethodInvoker(delegate { bar.Margin = new System.Windows.Forms.Padding(0); bar.Size = new Size(GetFormWidth() - 25, 100); }));
# Line 743  namespace EmuXPortal Line 738  namespace EmuXPortal
738              }              }
739              bar.Invoke(new MethodInvoker(delegate { bar.Value = 1; bar.Update(); }));              bar.Invoke(new MethodInvoker(delegate { bar.Value = 1; bar.Update(); }));
740              if (this.InvokeRequired) { this.Invoke((MethodInvoker)delegate() { this.Controls.Remove(bar); }); } else { this.Controls.Remove(bar); }              if (this.InvokeRequired) { this.Invoke((MethodInvoker)delegate() { this.Controls.Remove(bar); }); } else { this.Controls.Remove(bar); }
741              e.Result = t;              e.Result = t;            
             if (platform_flow.InvokeRequired) { platform_flow.Invoke((MethodInvoker)delegate() { platform_flow.ResumeLayout(false); }); } else { platform_flow.ResumeLayout(false); }  
742              parser.Dispose();              parser.Dispose();
743          }          }
744          private void platformWorker_ProgressChanged(object sender, ProgressChangedEventArgs e) { }          private void platformWorker_ProgressChanged(object sender, ProgressChangedEventArgs e) { }

Legend:
Removed from v.266  
changed lines
  Added in v.270

  ViewVC Help
Powered by ViewVC 1.1.22