Ejemplo n.º 1
0
 public void loadData()
 {
     if (a.username != null && a.username != "")
     {
         lbName.Visible = true;
         lbName.Text    = "Hello, " + a.firstname + " " + a.lastname;
     }
     else
     {
         lbName.Visible = false;
     }
     check++;
     try
     {
         if (check > 4)
         {
             int       genreid  = int.Parse(comboBox1.SelectedValue.ToString());
             int       artistid = int.Parse(comboBox2.SelectedValue.ToString());
             DataTable dt       = AlbumDAO.GetAlbum(genreid, artistid);
             dataGridView1.AutoGenerateColumns = false;
             dataGridView1.DataSource          = dt;
         }
     }
     catch (Exception ex)
     {
         return;
     }
 }