Exemplo n.º 1
0
        public static DBconnect getInstance()
        {
            if (instance == null)
            {
                DBconnect.instance = new DBconnect();
            }

            return(DBconnect.instance);
        }
Exemplo n.º 2
0
        private void crear_Click(object sender, EventArgs e)
        {
            int cant = Int16.Parse(cantidad.Text);

            for (int i = 0; i < cant; i++)
            {
                DBconnect.getInstance().insert(crearLlave());
            }
        }