public void UpdateHistory(History history) { historyView.Items.Clear(); for (int i = 0; i < history.stack.Count; i++) { if (history.currentAction == i) historyView.Items.Add(" ->" + history.stack[i]); else historyView.Items.Add(" * " + history.stack[i]); } }
public StageForm(StageDocument stage) { InitializeComponent(); joinOverlay = new JoinOverlay(); joinOverlay.Owner = this; this.SetBackgroundGrid(); history = new History(); surfaces = new Dictionary<String, ScreenDrawingSurface>(); surfaceLocations = new Dictionary<string, Point>(); SetStage(stage); MainForm.Instance.DrawOptionToggled += () => { joinOverlay.Visible = MainForm.Instance.DrawJoins; }; }