Esempio n. 1
0
        private void Formcauhoi_Load(object sender, EventArgs e)
        {
            string cnstr = ConfigurationManager.ConnectionStrings["cnstr"].ConnectionString;

            cn = new Connectsql();
            GetData();
        }
Esempio n. 2
0
 private void FormXemdiem_Load(object sender, EventArgs e)
 {
     cn = new Connectsql();
     cn.Connect();
     dt             = GetData();
     dgv.DataSource = dt;
     cn.Disconnect();
 }
Esempio n. 3
0
 private void Form1_Load(object sender, EventArgs e)
 {
     cn                = new Connectsql();
     Func              = new Functionplaygame();
     rand              = new Random();
     img               = Image.FromFile(Application.StartupPath + @"\chiecnon.png");
     txtMang.Text      = "";
     groupBox2.Enabled = false;
 }
Esempio n. 4
0
 private void Formluudiem_Load(object sender, EventArgs e)
 {
     cn       = new Connectsql();
     chuanhoa = new Chuanhoachuoi();
 }
Esempio n. 5
0
 public Functionplaygame()
 {
     cn       = new Connectsql();
     picture  = new List <PictureBox>();
     selected = new ArrayList();
 }