private void AddClient_Load(object sender, EventArgs e) { txtIdProduct.Focus(); fillCbx(cbxStore, storeLogic.returnIdStore()); this.Top = (Screen.PrimaryScreen.WorkingArea.Height - this.Height) / 2; this.Left = (Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2; }
private void HomeProduct_Load(object sender, EventArgs e) { cbxStore.Text = "Escoge una tienda"; cbxMunicipality.Text = "Escoge una municipio"; cbxDepartament.Text = "Escoge un departamento"; fillCbx(cbxStore, storeLogic.returnIdStore()); fillCbx(cbxMunicipality, municipalityLogic.getListMunicipality()); fillCbx(cbxDepartament, departamentLogic.getListDepartaments()); this.Top = (Screen.PrimaryScreen.WorkingArea.Height - this.Height) / 2; this.Left = (Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2; }