コード例 #1
0
        private void picAdd_Click(object sender, EventArgs e)
        {
            StaffForm form = new StaffForm();

            form.DataBind();
            if (form.ShowDialog() == DialogResult.OK)
            {
                DataBind();
            }
            ;
        }
コード例 #2
0
 private void picupdate_Click(object sender, EventArgs e)
 {
     if (this.gridView1.FocusedRowHandle >= 0)
     {
         object    data = this.gridView1.GetRow(this.gridView1.FocusedRowHandle);
         StaffForm form = new StaffForm();
         form.DataBind(data as aers_tbl_staff);
         if (form.ShowDialog() == DialogResult.OK)
         {
             DataBind();
         }
         ;
     }
 }