Example #1
0
File: kh.cs Project: yyxhgy/MMS
        /*新增功能*/
        private void btn_add_Click(object sender, EventArgs e)
        {
            kh_detail kh_add = new kh_detail("add", "");

            kh_add.btn_search_Click += new DelegateReflash(btn_search_Click);
            kh_add.ShowDialog();
        }
Example #2
0
File: kh.cs Project: yyxhgy/MMS
 /*修改功能*/
 private void btn_edt_Click(object sender, EventArgs e)
 {
     try
     {
         kh_detail kh_add = new kh_detail("edit", gridView1.GetFocusedDataRow()["id"].ToString());
         kh_add.btn_search_Click += new DelegateReflash(btn_search_Click);
         kh_add.ShowDialog();
     }
     catch (Exception ex)
     {
         status.Text = "请选择一行数据!";
     }
 }