/[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

--- branches/mono/EmuXPortal/Form1.cs	2016/03/17 05:23:38	266
+++ branches/mono/EmuXPortal/Form1.cs	2016/03/17 07:01:10	270
@@ -619,8 +619,6 @@
             bar.ProgressColor = Color.LimeGreen;
             bar.Dock = DockStyle.Top;
 
-            if (rom_flow.InvokeRequired) { rom_flow.Invoke((MethodInvoker)delegate() { rom_flow.SuspendLayout(); }); } else { rom_flow.SuspendLayout(); }
-
             if (this.InvokeRequired) { this.Invoke((MethodInvoker)delegate() { this.Controls.Add(bar); }); }
             else { this.Controls.Add(bar); }
             bar.Invoke(new MethodInvoker(delegate { bar.Margin = new System.Windows.Forms.Padding(0); bar.Size = new Size(GetFormWidth() - 25, 100); }));
@@ -665,8 +663,7 @@
             }
             bar.Invoke(new MethodInvoker(delegate { bar.Value = 1; bar.Update(); }));
             if (this.InvokeRequired) { this.Invoke((MethodInvoker)delegate() { this.Controls.Remove(bar); }); } else { this.Controls.Remove(bar); }
-            e.Result = t;
-            if (rom_flow.InvokeRequired) { rom_flow.Invoke((MethodInvoker)delegate() { rom_flow.ResumeLayout(false); }); } else { rom_flow.ResumeLayout(false); }
+            e.Result = t;            
             parser.Dispose();
         }
         private void gameWorker_ProgressChanged(object sender, ProgressChangedEventArgs e) { }
@@ -706,9 +703,7 @@
 #endif
             bar.ProgressColor = Color.LimeGreen;
             bar.Dock = DockStyle.Top;
-
-            if (platform_flow.InvokeRequired) { platform_flow.Invoke((MethodInvoker)delegate() { platform_flow.SuspendLayout(); }); } else { platform_flow.SuspendLayout(); }
-
+            
             if (this.InvokeRequired) { this.Invoke((MethodInvoker)delegate() { this.Controls.Add(bar); }); }
             else { this.Controls.Add(bar); }
             bar.Invoke(new MethodInvoker(delegate { bar.Margin = new System.Windows.Forms.Padding(0); bar.Size = new Size(GetFormWidth() - 25, 100); }));
@@ -743,8 +738,7 @@
             }
             bar.Invoke(new MethodInvoker(delegate { bar.Value = 1; bar.Update(); }));
             if (this.InvokeRequired) { this.Invoke((MethodInvoker)delegate() { this.Controls.Remove(bar); }); } else { this.Controls.Remove(bar); }
-            e.Result = t;
-            if (platform_flow.InvokeRequired) { platform_flow.Invoke((MethodInvoker)delegate() { platform_flow.ResumeLayout(false); }); } else { platform_flow.ResumeLayout(false); }
+            e.Result = t;            
             parser.Dispose();
         }
         private void platformWorker_ProgressChanged(object sender, ProgressChangedEventArgs e) { }

 

  ViewVC Help
Powered by ViewVC 1.1.22