Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
using OpenScadGraphEditor.Library.IO;
namespace OpenScadGraphEditor.History
{
/// <summary>
/// A history stack item. It contains the name of the operation that was performed when this history
/// item was created and the state of the project and the editor after the operation was performed.
/// </summary>
public class HistoryStackItem
{
public SavedProject ProjectState { get; }
public EditorState EditorState { get; private set; }
public string OperationName { get; }
public HistoryStackItem(string operationName, SavedProject projectState, EditorState editorState)
{
ProjectState = projectState;
EditorState = editorState;
OperationName = operationName;
}
public void PatchEditorState(EditorState editorState)
{
EditorState = editorState;
}
}
}7192f5216This file is pinned to the selected release. Download the original to open it in your design tool.