private void Form1_Load(object sender, EventArgs e) { try { _history = new StateHistoryTree(); _history.Init(); _commandControl = new UiCommandControl(RefreshTrees, ShowError); InitCommands(); _missionPropEditor = new PropEditors.ucMissionPropEditor(); _missionPropEditor.InitCommands(_commandControl); RefreshTrees(); } catch (Exception ex) { ShowError(ex); } }
public CommandRedo(TreeView trvHistory, StateHistoryTree history) { _history = history; _trvHistory = trvHistory; }
public static void RenderHistory(TreeView treeView, StateHistoryTree history) { treeView.Nodes.Clear(); RenderNode(treeView.Nodes, history.RootNode, history.CurrentNode); treeView.ExpandAll(); }