private void CargarCombo()
        {
            string lista = Principal.OpcionesdeBusqueda;

            string[]  vec  = lista.Split(';');
            DataTable trdo = new DataTable();

            trdo.Columns.Add("Indice");
            trdo.Columns.Add("Texto");

            DataRow r = trdo.NewRow();

            r[0] = 0;
            r[1] = "---Seleccionar---";
            trdo.Rows.Add(r);
            int    Indice = 0;
            string Texto  = "";

            for (int i = 0; i < vec.Count(); i++)
            {
                Indice = i + 1;
                Texto  = vec[i].ToString();
                DataRow r2 = trdo.NewRow();
                r2[0] = Indice.ToString();
                r2[1] = Texto;
                trdo.Rows.Add(r2);
            }
            Combo.DataSource    = trdo;
            Combo.ValueMember   = "Indice";
            Combo.DisplayMember = "Texto";
            Combo.SelectedIndex = 0;
            cFunciones fun = new Clases.cFunciones();

            fun.EstiloBotones(btnAceptar);
        }
Esempio n. 2
0
        private void FrmCopia_Load(object sender, EventArgs e)
        {
            cFunciones fun = new Clases.cFunciones();

            fun.EstiloBotones(btnCopia);
        }