private void FormUsuarios_Load(object sender, EventArgs e) { FormLateral frmLat = new FormLateral(); frmLat.TopLevel = false; frmLat.Parent = panel1; frmLat.Show(); frmLat.BringToFront(); ActualizarTabla(); Globales.f = "Usuarios"; }
private void FormProductos_Load(object sender, EventArgs e) { //fgdf FormLateral frmLat = new FormLateral(); frmLat.TopLevel = false; frmLat.Parent = panel1; frmLat.Show(); frmLat.BringToFront(); ActualizarTabla(); ActualizarDepartamento(); Globales.f = "Productos"; }
private void FormProveedores_Load(object sender, EventArgs e) { FormLateral frmLat = new FormLateral(); frmLat.TopLevel = false; frmLat.Parent = panel1; frmLat.Show(); frmLat.BringToFront(); using (ServiceReference1.ServidorWebClient client = new ServiceReference1.ServidorWebClient()) { try { DataTable dt = (DataTable)JsonConvert.DeserializeObject(client.cargarProveedor(), typeof(DataTable)); dgvTabla.DataSource = dt; } catch { MessageBox.Show("No sirvio :("); } } Globales.f = "Proveedores"; }