c# System.InvalidOperationException: not allowed to change from multiple threads code example
Example: invalidoperationexception c# ui thread
this.Invoke(new Action(() =>
{
// UI operation here
}));
this.Invoke(new Action(() =>
{
// UI operation here
}));