private void AddControlToRows (Control control)
{
if (this.rows.Count > 0)
if (this.rows[this.rows.Count - 1].CanMove ((ToolStrip)control)) {
this.rows[this.rows.Count - 1].OnControlAdded (control, 0);
return;
}
ToolStripPanelRow new_row = new ToolStripPanelRow (this);
if (this.Dock == DockStyle.Left || this.Dock == DockStyle.Right)
new_row.SetBounds (new Rectangle (0, 0, 25, this.Height));
else
new_row.SetBounds (new Rectangle (0, 0, this.Width, 25));
this.rows.Add (new_row);
new_row.OnControlAdded (control, 0);
}
/*