Improved Mono support.

This commit is contained in:
the_fiddler 2009-02-28 20:49:58 +00:00
parent c14b41b3f4
commit c953327f1c
2 changed files with 6 additions and 0 deletions

View file

@ -62,6 +62,7 @@ namespace Examples
public ExampleLauncher() public ExampleLauncher()
{ {
this.Font = SystemFonts.MessageBoxFont;
InitializeComponent(); InitializeComponent();
} }

View file

@ -40,6 +40,10 @@ namespace Examples.WinForms
InitializeComponent(); InitializeComponent();
Application.Idle += StartAsync; Application.Idle += StartAsync;
// Workaround for missing Idle event on Mono/Windows.
if (Configuration.RunningOnMono && Configuration.RunningOnWindows)
Application.RaiseIdle(EventArgs.Empty);
} }
#endregion #endregion
@ -61,6 +65,7 @@ namespace Examples.WinForms
} }
backgroundWorker1.RunWorkerAsync(); backgroundWorker1.RunWorkerAsync();
TextBoxSupport.Text = "processing... (please be patient)";
} }
void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)