Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public void AddRepeatPoint(string Introduce)
 {
     Console.WriteLine("AddRepeat:" + Introduce);
     Strack.AddRepeatPoint(Introduce);
     if (UndoWorked != null)
     {
         UndoWorked(this);
     }
 }