public ParStrip AppendNewParStrip() { Console.WriteLine("Append new ParStrip >>> {0}", mModel.NextLabel); ParStrip strip = new ParStrip(this, mModel.NextLabel); mModel.Strips.Add(strip); mUserControl.Controls.Add(strip.UserControl); return(strip); }
/// <summary> /// Append the strip. The first time it will be created; when redoing, the same strip will be appended again. /// </summary> public override void Do() { if (mStrip == null) { mStrip = mManager.AppendNewParStrip(); } else { mManager.AppendStrip(mStrip); } }
public ParStripUserControl(ParStrip controller) { InitializeComponent(); InitializeMembers(controller); }
/// <summary> /// Create an append container strip command. The strip will be created automagically. /// </summary> /// <param name="manager">The strip manager to append to.</param> public AppendParStripCommand(StripManager manager) { mManager = manager; // the strip will be created when the action is performed mStrip = null; }
protected void InitModelUserControl(string label, ParStrip parent) { mModel = new StructureStripModel(label, (ParStripModel)parent.Model); mUserControl = new StructureStripUserControl(this); }
public StructureStrip(StripManager manager, string label, ParStrip parent) { InitBaseMembers(manager, parent); InitModelUserControl(label, parent); }
public void InitBaseMembers(StripManager manager, ParStrip parent) { base.InitBaseMembers(manager); mParent = parent; }