public void StopChangeTask(string taskName) { if (mStartedChangeTask.Contains(taskName)) { int index = mStartedChangeTask.IndexOf(taskName); if (index != -1) { if (!mFinishTaskIndex.Contains(index)) { mFinishTaskIndex.Add(index); TimeGapper timeGapper = mChangeTimes[index]; timeGapper.Stop(); mChangeTimes[index] = timeGapper; } else { } } else { } } else { } }
public void Stop() { mState = 2; timeGapper.Stop(); }