public void ToogleFolding(int line) { if (!this [line].IsFoldable) { return; } lock (EditMutex) { this [line].IsFolded = !this [line].IsFolded; FoldingEvent.Raise(this, new CodeBufferEventArgs(line)); } }
public void ToogleFolding(int line) { if (!this [line].IsFoldable) { return; } editMutex.EnterWriteLock(); this [line].IsFolded = !this [line].IsFolded; editMutex.ExitWriteLock(); FoldingEvent.Raise(this, new CodeBufferEventArgs(line)); }