private void toolStripButton10_Click(object sender, EventArgs e) { UAU.RegisterPoint(OAC.AllocedSource); UAU.AddRepeatPoint(UAU.LastUndoRepo); KeyValuePair <PartsObject, string> PU = UAU.PeekUndo(); if (PU.Key != null) { OAC.ReAlloc(PU.Key); PV.setPartsObjectPtr(OAC.IntPtr); NV.setPartsObjectPtr(OAC.IntPtr); AV.setPartsObjectPtr(OAC.IntPtr); PitV.setPartsObjectPtr(OAC.IntPtr); DynV.setPartsObjectPtr(OAC.IntPtr); paramCurveWindow1.RedrawPiano(); pianoRollWindow1.RedrawPiano(); toolStripButton10.Text = "Undo-" + UAU.LastUndoRepo + "(" + UAU.UndoCount.ToString() + ")"; toolStripButton11.Text = "Repeat-" + UAU.LastRepeatRepo + "(" + UAU.RepeatCount.ToString() + ")"; } else { UAU.RemoveRepeatPoint(); } GC.Collect(); }
public void ApplyUndoPoint() { KeyValuePair <ProjectObject, string> kvp = Strack.PeekUndo(); FillObject(kvp.Key); }