Exemple #1
0
        private void FormDataPedidos_Load(object sender, EventArgs e)
        {
            cmbBusqueda.DataSource = Enum.GetValues(typeof(ENBusqueda));
            cmbBusqSec.Visible     = true;
            cmbBusqSec.Items.Add("Seleccione");
            cmbBusqSec.Items.Add("Mayor");
            cmbBusqSec.Items.Add("Menor");
            cmbBusqSec.Items.Add("Factura");
            cmbBusqSec.Items.Add("Cotizacion");
            cmbBusqSec.SelectedIndex  = 0;
            cmbBusqueda.SelectedIndex = 0;

            this.dtLista.CellFormatting += this.dtLista_CellFormatting;


            this.Lista();
            this.bndUltimo.Click    += new System.EventHandler(this.bindingNavigatorMoveLastItem_Click);
            this.bndSiguiente.Click += new System.EventHandler(this.bindingNavigatorMoveNextItem_Click);
            this.bndPrimero.Click   += new System.EventHandler(this.bindingNavigatorMoveFirstItem_Click);
            this.bndAtras.Click     += new System.EventHandler(this.bindingNavigatorMovePreviousItem_Click);

            this.bndPagActual.TextChanged += new System.EventHandler(this.bndPagActual_TextChanged);

            panelPreview.Visible = false;
            FormMDI.usuarioValido(btnEditar);
            FormMDI.usuarioValido(btnEliminar);
            // this.dtLista.CellContentClick += dtLista_CellContentClick;


            //cmbBusqSec.DataSource = Enum.GetValues(typeof(ENBusquedaOpcion));
        }
 private void FormDataCaracteristicas_Load(object sender, EventArgs e)
 {
     this.Lista();
     this.dtLista.CellContentClick += dtLista_CellContentClick;
     FormMDI.usuarioValido(btnEditar);
     FormMDI.usuarioValido(btnEliminar);
 }
Exemple #3
0
 private void FormDataColores_Load(object sender, EventArgs e)
 {
     this.Lista();
     this.dtLista.CellContentClick +=
         new System.Windows.Forms.DataGridViewCellEventHandler(this.dtLista_CellContentClick);
     FormMDI.usuarioValido(btnEditar);
     FormMDI.usuarioValido(btnEliminar);
 }
        private void FormDataProductos_Load(object sender, EventArgs e)
        {
            try
            {
                cmbBusqueda.DataSource = Enum.GetValues(typeof(ENBusqueda));
                cmbBusqSec.Visible     = true;
                cmbBusqSec.Items.Add("Seleccione");
                cmbBusqSec.Items.Add("Mayor");
                cmbBusqSec.Items.Add("Menor");
                cmbBusqSec.Items.Add("Si");
                cmbBusqSec.Items.Add("No");

                //Thread t = new Thread(new ThreadStart(LoadData));
                //t.Start();
                //t.Join();
                //Task t = Task.Factory.StartNew(() =>LoadData());
                // dtLista.Visible = false;


                this.dtLista.CellFormatting   += this.dtLista_CellFormatting;
                this.dtLista.CellContentClick += dtLista_CellContentClick;
                //ThreadPool.QueueUserWorkItem(new WaitCallback(o => LoadData()));

                // dtLista.VirtualMode = true;



                this.bndUltimo.Click    += new System.EventHandler(this.bindingNavigatorMoveLastItem_Click);
                this.bndSiguiente.Click += new System.EventHandler(this.bindingNavigatorMoveNextItem_Click);
                this.bndPrimero.Click   += new System.EventHandler(this.bindingNavigatorMoveFirstItem_Click);
                this.bndAtras.Click     += new System.EventHandler(this.bindingNavigatorMovePreviousItem_Click);

                this.bndPagActual.TextChanged += new System.EventHandler(this.bndPagActual_TextChanged);
                // dtLista.AllowUserToResizeColumns = false;


                //this.LoadData();

                FormMDI.usuarioValido(btnEditar);
                FormMDI.usuarioValido(btnEliminar);
            }
            catch (Exception ex) {
                MessageBox.Show(ex.Message);
            }
        }
Exemple #5
0
 public FormLogin(FormMDI formMDI)
 {
     InitializeComponent();
     FormMDI = formMDI;
 }