void StartCurrentSequence() { mCurrentProgram = mSequenceList[mFunc]; LogAppend("StartCurrentSequence(): ", FontStyle.Bold, mFunc.ToString()); mEngine.LoadSequence(mCurrentProgram); // rebuild control panel ctlSequenceControlsPanel.SuspendLayout(); ctlSequenceControlsPanel.Controls.Clear(); foreach (var ctlv in mCurrentProgram.Controls) { ctlSequenceControlsPanel.Controls.Add(ctlv.Value.MakeUIControl(ctlv.Key)); } ctlSequenceControlsPanel.ResumeLayout(); }