예제 #1
0
 public void ToogleFolding(int line)
 {
     if (!this [line].IsFoldable)
     {
         return;
     }
     lock (EditMutex) {
         this [line].IsFolded = !this [line].IsFolded;
         FoldingEvent.Raise(this, new CodeBufferEventArgs(line));
     }
 }
예제 #2
0
 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));
 }