private void 商品类别TToolStripMenuItem_Click(object sender, EventArgs e) { string title = getTitleFromMenuItem(sender); logDao.saveLog(Parameter.user, title); CategoryFrm cateFrm = new CategoryFrm(); cateFrm.MdiParent = this; cateFrm.setTable("categoryOfProduct"); cateFrm.Text = title; cateFrm.Show(); }