private string redo_label; // for undo and redo public WorkAreaForm() { InitializeComponent(); mStripManager = new StripManager(stripLayout); mUndoStack = new UndoRedoStack(); mMetadata = new Metadata(); metadataInfoPanel1.MetadataController = mMetadata; undo_label = undoToolStripMenuItem.Text; redo_label = redoToolStripMenuItem.Text; openFileDialog1.Filter = "Wave file|*.wav|Any file|*.*"; }
/// <summary> /// The actual base constructor. /// Do not overload the constructor as it will not initialize the most specific model and user control. /// </summary> /// <param name="manager">The parent manager of the controller.</param> protected void InitBaseMembers(StripManager manager) { mManager = manager; mSelected = false; }
/// <summary> /// Create a new strip, as well as a user control and a model. /// </summary> /// <param name="manager">The strip manager to which this strip belongs.</param> /// <param name="label">The label of the strip.</param> public Strip(StripManager manager, string label) { InitBaseMembers(manager); InitModelUserControl(label); }
/// <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; }
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; }