Пример #1
0
        public FormaCategoria()
        {
            InitializeComponent();

            string strConexion = "server=" + cxml.Text("ACUANET/BD/SBD_ip", "127.0.0.1")
                + ";uid=" + cxml.Text("ACUANET/BD/SBD_usuario", "root")
                + ";pwd=" + cxml.Text("ACUANET/BD/SBD_passwd", "")
                + ";database=" + cxml.Text("ACUANET/BD/SBD_bdn", "ntritondb");
                modC = new ModCategoria(strConexion);
                this.dgv_categoria.DataSource = modC.obtenCategoriadgv().Tables[0].DefaultView;
        }
Пример #2
0
        public CreaOleada()
        {
            InitializeComponent();

              strConexion = "server=" + cxml.Text("ACUANET/BD/SBD_ip", "127.0.0.1")
                + ";uid=" + cxml.Text("ACUANET/BD/SBD_usuario", "root")
                + ";pwd=" + cxml.Text("ACUANET/BD/SBD_passwd", "")
                + ";database=" + cxml.Text("ACUANET/BD/SBD_bdn", "ntritondb");

            modo = new ModCategoria(strConexion);
            listBox1.DataSource = modo.obtenDTCsinO();

            this.listBox1.DisplayMember = "nombre";
            this.listBox1.ValueMember = "nombre";
        }
Пример #3
0
        private void cargaConfigInterfaz()
        {
            lock(this)
            {
                string strConexion = "server=" + cxml.Text("ACUANET/BD/SBD_ip", "127.0.0.1")
                + ";uid=" + cxml.Text("ACUANET/BD/SBD_usuario", "root")
                + ";pwd=" + cxml.Text("ACUANET/BD/SBD_passwd", "")
                + ";database=" + cxml.Text("ACUANET/BD/SBD_bdn", "ntritondb");

                ModCategoria mcat = new ModCategoria(strConexion);

                this.cb_categoria.DataSource = mcat.obtenDTC();

                this.cb_categoria.DisplayMember = "nombre";
                this.cb_categoria.ValueMember = "nombre";
            }
        }