private void tl_Module_DoubleClick(object sender, EventArgs e) { object item = this.bscTSMODULE.Current; if (item != null) { DataRowView drv = item as DataRowView; FrmMenuAdd frmAdd = new FrmMenuAdd(drv["C_MODULEID"].ToString(), true); frmAdd.Owner = this; frmAdd.ShowDialog(); } }
/// <summary> /// 添加子目录 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void simpleButton3_Click(object sender, EventArgs e) { try { FrmMenuAdd frmAdd = new FrmMenuAdd(strID, false); frmAdd.Owner = this; frmAdd.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }