private void button1_Click(object sender, EventArgs e) { CategoryFrm categoryFrm = new CategoryFrm(this); categoryFrm.setTable("categoryOfProduct"); categoryFrm.Text = "商品类别"; categoryFrm.ShowDialog(); }
private void 往来单位类型UToolStripMenuItem_Click(object sender, EventArgs e) { string title = getTitleFromMenuItem(sender); logDao.saveLog(Parameter.user, title); CategoryFrm cateFrm = new CategoryFrm(); cateFrm.MdiParent = this; cateFrm.setTable("categoryOfUnit"); cateFrm.Text = title; cateFrm.Show(); }