Ejemplo n.º 1
0
 private void PictureBox1_Click(object sender, EventArgs e)
 {
     if (indexOfTheme != 0 && indexOfEvent != 0)
     {
         ThemeBD.Clear();
         ThemeBD.Select(ListofThematics, ThemeBD, indexOfEvent);
         indexOfTheme = 0;
     }
     else if (indexOfEvent != 0)
     {
         ThemeBD.Clear();
         EventBD.Select(ListofEvents, EventBD);
         indexOfEvent = 0;
     }
     else
     {
         ThemeBD.Clear();
         EventBD.Select(ListofEvents, EventBD);
         indexOfEvent = 0;
         indexOfTheme = 0;
     }
 }
Ejemplo n.º 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     EventBD          = new EventTransaction(50, 50, 60, 330, this);
     ThemeBD          = new ThematicTransaction(50, 50, 60, 330, this);
     CongratulationBD = new CongratulationTransaction(50, 50, 300, 330, this);
     //Fill ListofEvents
     ListofEvents = Event.Fill();
     //Fill ListOfThematics
     ListofThematics = Theme.Fill();
     //Fill ListOfCongratulations
     ListOfCongratulations = Congratulation.Fill();
     //First select when form has alreadde loaded
     EventBD.Select(ListofEvents, EventBD);
 }