Esempio n. 1
0
 private void displayByCurrentMonth(XElement gig, GigInfo currentGig)
 {
     String currentMonth = DateTime.Now.ToString("MM");
     if (gig.Element("Date").Attribute("month").Value == currentMonth)
         gridRow.Add(currentGig.getInfo(gig));
 }
Esempio n. 2
0
 //After implementing a button that searched for only "Hard Rock" I modified the code to search by genre
 private void filterByGenre(XElement gig, GigInfo currentGig)
 {
     if (gig.Element("Band").Element("Genre").Value == comboBox1.Text)
         gridRow.Add(currentGig.getInfo(gig));
 }
Esempio n. 3
0
 private void displayAllGigs(XElement gig, GigInfo currentGig)
 {
     gridRow.Add(currentGig.getInfo(gig));
 }