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; }
private void ThreadWorkerCallback(IAsyncResult state) { RainstormStudios.GenericCrossThreadDelegate del = (RainstormStudios.GenericCrossThreadDelegate)state.AsyncState; del.EndInvoke(state); this._oldWindows.Clear(); this.OnManagerStopped(EventArgs.Empty); }