// This will be called from a different Thread, therefore post it to the main thread! public void Notify_NeedRestart(string reason, Calculation adapter) { moduleThread?.Post(Do_Notify_NeedRestart, reason, adapter); }