Beispiel #1
0
        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);
        }
Beispiel #2
0
 /// <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);
     }
 }
Beispiel #3
0
 public ParStripUserControl(ParStrip controller)
 {
     InitializeComponent();
     InitializeMembers(controller);
 }
Beispiel #4
0
 /// <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;
 }
Beispiel #5
0
 protected void InitModelUserControl(string label, ParStrip parent)
 {
     mModel       = new StructureStripModel(label, (ParStripModel)parent.Model);
     mUserControl = new StructureStripUserControl(this);
 }
Beispiel #6
0
 public StructureStrip(StripManager manager, string label, ParStrip parent)
 {
     InitBaseMembers(manager, parent);
     InitModelUserControl(label, parent);
 }
Beispiel #7
0
 public void InitBaseMembers(StripManager manager, ParStrip parent)
 {
     base.InitBaseMembers(manager);
     mParent = parent;
 }