コード例 #1
0
        private void btnSfAdd_Click(object sender, EventArgs e)
        {
            FrmStaffAdd frm = new FrmStaffAdd("");

            //frm.setControl("");
            frm.ShowDialog(this);
            setControl();
        }
コード例 #2
0
 private void dgvView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex == -1)
     {
         return;
     }
     if (dgvView[colId, e.RowIndex].Value == null)
     {
         return;
     }
     if (e.ColumnIndex == colPassword)
     {
         FrmPassword frm = new FrmPassword(dgvView[colId, e.RowIndex].Value.ToString());
         frm.ShowDialog(this);
     }
     else
     {
         FrmStaffAdd frm = new FrmStaffAdd(dgvView[colId, e.RowIndex].Value.ToString());
         //frm.setControl(dgvView[colId, e.RowIndex].Value.ToString());
         frm.ShowDialog(this);
         setControl();
     }
 }