コード例 #1
0
 private void btn_add_Click(object sender, EventArgs e)
 {
     //if (gridView1.FocusedRowHandle<0)
     //{
     //    return;
     //}
     managetable = false;
     Form f = new Form();
     uctlAddpt ap = new uctlAddpt();
     f.FormBorderStyle = FormBorderStyle.None;
     f.Size = new Size(541, 58);
     uctlAddpt.kind = "add";
     CommonFunction.AddForm(f, ap);
     InitData();
 }
コード例 #2
0
 private void btn_update_Click(object sender, EventArgs e)
 {
     managetable = false;
     Form f = new Form();
     uctlAddpt ap = new uctlAddpt();
     f.FormBorderStyle = FormBorderStyle.None;
     f.Size = new Size(541, 58);
     uctlAddpt.kind = "update";
     CommonFunction.AddForm(f, ap);
     uctlAddpt.ptid = gridView2.GetDataRow(gridView2.FocusedRowHandle)["pt_id"].ToString();
     InitData();
 }