Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="initialContent">Represents the current contents of the file. Reference is not held. A copy is made.</param>
 /// <param name="path"></param>
 /// <param name="saveTo"></param>
 public SaveableFileUndoable(MemoryStream initialContent, FileInfo path, Action <Stream> saveTo, UpToDateFile.BackEnd backEnd)
     : base(initialContent, path, saveTo, backEnd)
 {
     FileModifiedExternally += () => m_undoQueue.NeverSaved();
     FileDeletedExternally  += () => m_undoQueue.NeverSaved();
     m_undoQueue             = new UndoQueue(path.Name);
 }
Exemple #2
0
 public Element(UndoQueue queue, UndoAction action)
 {
     m_queue = queue;
     Action  = action;
 }