Exemplo n.º 1
0
 // We ensure that our event is raised on the Automation thread .. (Eases concurrency issues in handling it, though it will get passed on to the main thread...)
 void OnStateChanged(StateChangeEventArgs stateChangeEventArgs)
 {
     _syncContextAuto.Post(args => StateChanged?.Invoke(this, (StateChangeEventArgs)args), stateChangeEventArgs);
 }
Exemplo n.º 2
0
 private void OnStateChanged(object sender, StateChangeEventArgs args)
 {
     _syncContextMain.Post(delegate { FormulaEditStateChanged(args.StateChangeType); }, null);
     // FormulaEditStateChanged();
 }