Beispiel #1
0
        public static DBconnect getInstance()
        {
            if (instance == null)
            {
                DBconnect.instance = new DBconnect();
            }

            return(DBconnect.instance);
        }
Beispiel #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());
            }
        }