private void cmdAceptar_Click(object sender, EventArgs e) { if (rboOP.Checked == true) { Oficinas_Principales OP = new Oficinas_Principales(); OP.Show(); this.Hide(); } if (rboUR.Checked == true) { Unidad_Responsable UR = new Unidad_Responsable(); UR.Show(); this.Hide(); } if (rboHistorial.Checked == true) { Historial Historial = new Historial(); Historial.Show(); this.Hide(); } if (rboInsertar.Checked == true) { Insertar insertar = new Insertar(); insertar.Show(); this.Hide(); } if ((rboOP.Checked == false) && (rboUR.Checked == false) && (rboHistorial.Checked == false) && (rboInsertar.Checked == false)) { MessageBox.Show("Tienes que seleccionar uno", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void cmdLimpiar_Click(object sender, EventArgs e) { Historial historial = new Historial(); historial.ResetMouseEventArgs(); cboArea.Text = ""; cboEstado.Text = ""; cboTipo.Text = ""; dateTPHistorial.ResetText(); dateTPHistorial.Enabled = true; cboArea.Enabled = true; cboTipo.Enabled = true; cboEstado.Enabled = true; }