Пример #1
0
 private static void AutoSaveThreadCallback(IAsyncResult state)
 {
     // Nothing to do here except make sure we properly terminate the secondary thread.
     RainstormStudios.GenericCrossThreadDelegate del = (RainstormStudios.GenericCrossThreadDelegate)state.AsyncState;
     del.EndInvoke(state);
     _threadRunning = false;
 }
Пример #2
0
 private void ThreadWorkerCallback(IAsyncResult state)
 {
     RainstormStudios.GenericCrossThreadDelegate del = (RainstormStudios.GenericCrossThreadDelegate)state.AsyncState;
     del.EndInvoke(state);
     this._oldWindows.Clear();
     this.OnManagerStopped(EventArgs.Empty);
 }