예제 #1
0
파일: StripManager.cs 프로젝트: daisy/obi
        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);
        }
예제 #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);
     }
 }
예제 #3
0
 public ParStripUserControl(ParStrip controller)
 {
     InitializeComponent();
     InitializeMembers(controller);
 }
예제 #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;
 }
예제 #5
0
 protected void InitModelUserControl(string label, ParStrip parent)
 {
     mModel       = new StructureStripModel(label, (ParStripModel)parent.Model);
     mUserControl = new StructureStripUserControl(this);
 }
예제 #6
0
 public StructureStrip(StripManager manager, string label, ParStrip parent)
 {
     InitBaseMembers(manager, parent);
     InitModelUserControl(label, parent);
 }
예제 #7
0
파일: SeqStrip.cs 프로젝트: daisy/obi
 public void InitBaseMembers(StripManager manager, ParStrip parent)
 {
     base.InitBaseMembers(manager);
     mParent = parent;
 }