Example #1
0
        public Login()
        {
            InitializeComponent();
            datos cn = new datos();

            cn.conec();
            sCn  = cn.cadena;
            conn = new SqlConnection(sCn);
        }
Example #2
0
        public Grados()
        {
            InitializeComponent();
            this.toolTip1.SetToolTip(this.pictureBox2, "Modificar");
            this.toolTip1.SetToolTip(this.pictureBox3, "Eliminar");
            this.toolTip1.SetToolTip(this.pictureBox1, "Guardar");
            this.toolTip1.SetToolTip(this.pictureBox5, "Consultar");
            datos cn = new datos();

            cn.conec();
            sCn  = cn.cadena;
            conn = new SqlConnection(sCn);
        }