private void btnAñadir_Click(object sender, EventArgs e) { proveedor proveedor = new proveedor(); proveedor.ShowDialog(); this.Hide(); }
private void btnProveedor_Click(object sender, EventArgs e) { if (!this.MdiChildren.Contains(proveedor2)) { proveedor2 = new proveedor(); proveedor2.MdiParent = this; proveedor2.Show(); } else { proveedor2.Activate(); } }