public void RegisterItem(ToolStripPath path, IToolStripItemCodon toolStripItem) { ToolStripView toolStrip = this.GetToolStrip(path.PathPoints[0].Name); if (toolStrip == null && path.PathPoints.Count == 1) { toolStrip = this.CreateToolStrip(path.PathPoints[0].Name); } toolStrip.RegisterItem(path.Cut(0), toolStripItem); }
public ToolStripView CreateToolStrip(ToolStripCodon toolStripCodon) { if (toolStripCodon == null) { throw new ArgumentException("CreateToolStrip Error"); } ToolStripView toolStripDoozer = new ToolStripView(toolStripCodon); this.Controls.Add(toolStripDoozer); return(toolStripDoozer); }
public ToolStripView CreateToolStrip(string pathPoint) { if (String.IsNullOrEmpty(pathPoint)) { throw new ArgumentException("CreateToolStrip Error"); } ToolStripView toolStripDoozer = new ToolStripView(new ToolStripCodon(pathPoint)); this.Controls.Add(toolStripDoozer); return(toolStripDoozer); }