Beispiel #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            Global.isUserEdit = false;
            FrmUserMaintenance frmUserMaintenance = new FrmUserMaintenance();

            frmUserMaintenance.ShowDialog();
        }
Beispiel #2
0
        private void dgLoadEmployees_DoubleClick(object sender, EventArgs e)
        {
            int selectedrowindex = dgLoadEmployees.SelectedCells[0].RowIndex;

            DataGridViewRow selectedRow = dgLoadEmployees.Rows[selectedrowindex];

            int selectedUser = Convert.ToInt32(selectedRow.Cells["UserId"].Value);

            Global.selectedUser = selectedUser;
            Global.isUserEdit   = true;

            FrmUserMaintenance frmUserMaintenance = new FrmUserMaintenance();

            frmUserMaintenance.ShowDialog();
        }