private void DoInvoke(Action Action)
{
if (this.InvokeRequired && GuiThread != Thread.CurrentThread && (!Platform.IsMono || Platform.OS != OS.Windows))
//if (this.InvokeRequired && GuiThread != Thread.CurrentThread)
{
this.Invoke(Action);
}
else
{
Action();
}
}