Exemplo n.º 1
0
        void _guiTimer_Tick(object sender, EventArgs e)
        {
            _guiTimer.Stop();
            //_elapsed(sender, e);
            // Synchronize thread with GUI because SIP stack works with GUI thread only

            // TODO: check! May occur disposing problems
            //if (/*(_form.Form.IsDisposed) || (_form.Form.Disposing) ||*/ (!_core.IsInitialized))
            //    return;

            CommonDelegates.SafeBeginInvoke(() => { if (_elapsed != null)
                                                    {
                                                        _elapsed.Invoke(sender, e);
                                                    }
                                            });
        }
Exemplo n.º 2
0
 // Invokes
 private void SafeBeginInvoke(Action action)
 {
     CommonDelegates.SafeBeginInvoke(action);
 }