Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
 /// <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);
     }
 }