Пример #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmPartNumberAddEdit frm = new frmPartNumberAddEdit();

            frm.ShowDialog();
            Search();
        }
Пример #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (viewDuLieu.RowCount > 0)
     {
         frmPartNumberAddEdit frm = new frmPartNumberAddEdit(viewDuLieu.GetRowCellValue(viewDuLieu.FocusedRowHandle, "Id").ToString());
         DialogResult         dr  = frm.ShowDialog();
         if (dr == DialogResult.OK)
         {
             Search();
         }
     }
 }