private void EditarRegistrosCajas_Load(object sender, EventArgs e)
 {
     this.Location = new Point(0, 0);
     reg = new Registro();
     acercaDe = new About();
     if (reg.obtenerClientes())
     {
         foreach (string clien in reg.ListaClientes)
             cmbClientes.Items.Add(clien);
     }
     this.crearDataGridView(dgvRegistros);
     if (user.EsAdmin)
         toolStrip_cmdAdministracionSistema.Enabled = true;
     else
         toolStrip_cmdAdministracionSistema.Enabled = false;
     registrosDeCajasToolStripMenuItem.Enabled = false;
 }
 private void EditarRegistrosCajas_Load(object sender, EventArgs e)
 {
     this.Location = new Point(0, 0);
     regPulsar = new RegistroPulsar();
     acercaDe = new About();
     if (regPulsar.obtenerPedidosPulsar())
     {
         foreach (string ped in regPulsar.ListaPedidosPulsar)
             cmbPedidos.Items.Add(ped);
     }
     this.crearDataGridView(dgvRegistros);
     if (user.EsAdmin)
         toolStrip_cmdAdministracionSistema.Enabled = true;
     else
         toolStrip_cmdAdministracionSistema.Enabled = false;
     registrosDePedidosPulsarToolStripMenuItem.Enabled = false;
     //registrosDeCajasToolStripMenuItem.Enabled = false;
     //dehabilitar el de Sets Pulsar
 }
 private void cmdAcercaDe_Click(object sender, EventArgs e)
 {
     int x = this.Location.X;
     int w = this.Width;
     int y = this.Location.Y;
     int h = this.Height;
     About ab = new About(x, y, w, h);
     ab.ShowDialog();
 }
        private void EditarRegistroPallet_Load(object sender, EventArgs e)
        {
            this.Location = new Point(0, 0);
            acercaDe = new About();

            OleDbCommand comm = new OleDbCommand();
            comm.Connection = connAccess;
            comm.CommandText = "SELECT DISTINCT Cliente FROM tRegistrosPallets ORDER BY Cliente ASC";
            try
            {
                connAccess.Open();
                OleDbDataReader reader = comm.ExecuteReader();
                while (reader.Read())
                {
                    cmbClientes.Items.Add(reader["cliente"].ToString());
                }
                connAccess.Close();
                reader.Dispose();
            }
            catch (Exception ex)
            {
                if (connAccess.State == System.Data.ConnectionState.Open)
                    connAccess.Close();
                MessageBox.Show(ex.Message);
            }
            if (user.EsAdmin)
                toolStrip_cmdAdministracionSistema.Enabled = true;
            else
                toolStrip_cmdAdministracionSistema.Enabled = false;

            this.crearDataGridView(dgvRegistros);
            this.llenarDiccionarios_Y_Listas();
            registrosDePalletToolStripMenuItem.Enabled = false;
            cmdEditar.Enabled = false;
            cmbClientes.Focus();
        }