public AddEditUser(int GebID) { this.Width = 519; InitializeComponent(); _taak = Taak.Bekijken; DevExpress.Skins.SkinManager.EnableFormSkins(); this.Text = "Gebruiker info"; //groupControl1.Enabled = false; //grpMain.Enabled = false; txtNaam.ReadOnly = true; txtAdres.ReadOnly = true; txtPC.ReadOnly = true; txtPlaats.ReadOnly = true; txtMailadres.ReadOnly = true; txtSkype.ReadOnly = true; txtTel1.ReadOnly = true; txtTel2.ReadOnly = true; txtOpmerkingen.ReadOnly = true; navOK.Enabled = false; clsUsers cls = new clsUsers(); NewGebruiker = cls.GetGebruikerByID(GebID); initAlles(); navOK.Enabled = true; txtGebruikersnaam.Focus(); }
public AddEditEmployee(int employeeID) { InitializeComponent(); vulCombos(); if (employeeID > 0) { clsUsers cls = new clsUsers(); _empoloyee = cls.GetGebruikerByID(employeeID); } }
private void editRec() { clsUsers cls = new clsUsers(); Gebruiker geb = cls.GetGebruikerByID(Convert.ToInt32(gcGebruiker.GetRowCellValue(gcGebruiker.FocusedRowHandle, "ID"))); Forms.AddEditUser frm = new Forms.AddEditUser(geb, Forms.AddEditUser.Taak.Bewerken); if (frm.ShowDialog() == DialogResult.OK) { frm.Dispose(); herladen(); } }