/// <summary> /// /// REINICIA UN NUEVO FORMULARIO /// /// </summary> /// public override void btNuevo_Click(object sender, EventArgs e) { DistanciaPuntoPlano nuevo = new DistanciaPuntoPlano(directa); nuevo.Show(); this.Close(); }
private void AceptarDistanciaPuntoPlano_Click(object sender, EventArgs e) { if (this.Owner != null) { this.Owner.Hide(); } bool directo = rbDirecta.Checked; if (!rbDirecta.Checked && !rbPasoAPaso.Checked) { return; } DistanciaPuntoPlano distanciapuntoplano = new DistanciaPuntoPlano(directo); distanciapuntoplano.Size = new Size(1392, 703); distanciapuntoplano.Show(); distanciapuntoplano.Owner = this.Owner; this.Hide(); }