Exemplo n.º 1
0
        private void toolStripButton11_Click(object sender, EventArgs e)
        {
            UAU.RegisterPoint(OAC.AllocedSource);
            UAU.AddUndoPoint(UAU.LastRepeatRepo);
            KeyValuePair <PartsObject, string> PU = UAU.PeekRepeat();

            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.RemoveUndoPoint();
            }
            GC.Collect();
        }
Exemplo n.º 2
0
        public void ApplyRepeatPoint()
        {
            KeyValuePair <ProjectObject, string> kvp = Strack.PeekRepeat();

            FillObject(kvp.Key);
        }