ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

Examen parcial ing software


Enviado por   •  5 de Noviembre de 2022  •  Exámen  •  4.499 Palabras (18 Páginas)  •  41 Visitas

Página 1 de 18

MENU PRINCIPAL

[pic 1]

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

namespace RIFA

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

        }

        private void btnVentas_Click(object sender, EventArgs e)

        {

            Registro.Rifas_a_vender frm = new Registro.Rifas_a_vender();

            frm.ShowDialog();

        }

        private void btnTalonario_Click(object sender, EventArgs e)

        {

            Reportes.Listado_por_talonario frm = new Reportes.Listado_por_talonario();

            frm.ShowDialog();

        }

        private void btnSorteo_Click(object sender, EventArgs e)

        {

            Sorteo.Sorteo_Rifa frm = new Sorteo.Sorteo_Rifa();

            frm.ShowDialog();

        }

        private void btnCompradores_Click(object sender, EventArgs e)

        {

            Reportes.Listado_por_Comprador frm = new Reportes.Listado_por_Comprador();

            frm.ShowDialog();

        }

        private void btnRegistro_Click(object sender, EventArgs e)

        {

            Registro.Registro_Compradores frm = new Registro.Registro_Compradores();

            frm.ShowDialog();

        }

        private void btnRegistroPremios_Click(object sender, EventArgs e)

        {

            Registro.Registro_Premios frm = new Registro.Registro_Premios();

            frm.ShowDialog();

        }

    }

}

Carpeta sorteo

[pic 2]

using System;

using System.Data;

using System.Windows.Forms;

using System.Data.SqlClient;

using System.IO;

using System.Text.RegularExpressions;

using System.Drawing;

using System.Windows.Forms;

namespace RIFA.Sorteo

{

    public partial class Sorteo_Rifa : Form

    {

        public Sorteo_Rifa()

        {

            InitializeComponent();

        }

        public static string Ganadores;

        private void Sorteo_Rifa_Load(object sender, EventArgs e)

        {

            listado_compradores();

        }

        private void listado_compradores()

        {

            try

            {

                DataTable dt = new DataTable();

                SqlConnection con = new SqlConnection();

                con.ConnectionString = CONEXION.CONEXION_MAESTRA.conexion;

                con.Open();

                SqlCommand cmd = new SqlCommand("listado_compradores", CONEXION.CONEXION_MAESTRA.conectar);

                SqlDataAdapter da = new SqlDataAdapter(cmd);

                da.Fill(dt);

                Datalistado_Comprador.DataSource = dt;

                con.Close();

            }

            catch (Exception ex)

            {

                MessageBox.Show(ex.Message);

            }

        }

        private void num1_Click(object sender, EventArgs e)

        {

                Random aleat = new Random();

                lblNum1.Text = Convert.ToString(aleat.Next(0, 9));

                lblNum2.Text = Convert.ToString(aleat.Next(0, 9));

                lblNum3.Text = Convert.ToString(aleat.Next(0, 9));

                lblNum4.Text = Convert.ToString(aleat.Next(0, 9));

                string Ganador = lblNum1.Text + lblNum2.Text + lblNum3.Text + lblNum4.Text;

...

Descargar como (para miembros actualizados)  txt (15.3 Kb)   pdf (1 Mb)   docx (1 Mb)  
Leer 17 páginas más »
Disponible sólo en Clubensayos.com