Example #1
0
 private void Btn_generar_Click(object sender, EventArgs e)
 {
     try
     {
         Vsecundaria Ventana2 = Vsecundaria.GetInstancia;
         Ventana2.IMAGEBOX1 = SetPictureBoxImagen();
         Ventana2.INFOLABEL = GetInfo();
         Ventana2.Show();
         Ventana2.BringToFront();
     }
     catch (Exception ex)
     {
         Console.WriteLine($"{ex}");
     }
     finally
     {
         Limpiar();
     }
 }
 private void Btn_close_Click(object sender, EventArgs e)
 {
     Dispose();
     Close();
     Instancia = null;
 }