コード例 #1
0
 public IUndoableEditListener[] GetUndoableEditListeners()
 {
     lock (this) {
         IUndoableEditListener[] result = new IUndoableEditListener[listeners.Count];
         listeners.CopyTo(result);
         return(result);
     }
 }
コード例 #2
0
 public void RemoveUndoableEditListener(IUndoableEditListener l)
 {
     lock (this) {
         listeners.Remove(l);
     }
 }
コード例 #3
0
 public void AddUndoableEditListener(IUndoableEditListener l)
 {
     lock (this) {
         listeners.Add(l);
     }
 }