Beispiel #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmMachineAddEdit frm = new frmMachineAddEdit();

            frm.ShowDialog();
            Search();
        }
Beispiel #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            frmMachineAddEdit frm = new frmMachineAddEdit(viewDuLieu.GetRowCellValue(viewDuLieu.FocusedRowHandle, "Id").ToString());
            DialogResult      dr  = frm.ShowDialog();

            if (dr == DialogResult.OK)
            {
                Search();
            }
        }