public void Start() { if (AutoSaveThread.ThreadState == ThreadState.Unstarted || AutoSaveThread.ThreadState == ThreadState.Stopped) { AutoSaveThread.Start(); } else if (AutoSaveThread.ThreadState == ThreadState.Aborted) { AutoSaveThread = new Thread(Run); AutoSaveThread.Start(); } }
public void Abort() { AutoSaveThread.Abort(); }