private void Insert_Click(object sender, EventArgs e)
{
if (ctlInsertCurrent != null)
ctlInsertCurrent.Checked = false;
ToolStripButton ctl = (ToolStripButton)sender;
ctlInsertCurrent = ctl.Checked ? ctl : null;
MDIChild mc = this.ActiveMdiChild as MDIChild;
if (mc == null)
return;
mc.SetFocus();
mc.CurrentInsert = ctlInsertCurrent == null ? null : (string)ctlInsertCurrent.Tag;
}