Пример #1
0
 private void btnEventRaffle_Click(object sender, EventArgs e)
 {
     if (cmbEvents.Text != "")
     {
         if (connect.HasAdduPopulation(eventData[eid][4].ToString()))
         {
             RaffleAddu rsInitialize = new RaffleAddu();
             rsInitialize.eventRow = new List <string>()
             {
                 eventData[eid][0], eventData[eid][1],
                 eventData[eid][2], eventData[eid][3], eventData[eid][4], eventData[eid][5]
             };
             rsInitialize.Show();
             this.Hide();
         }
         else
         {
             MessageBox.Show("No AdDU student/s participated", "NO PARTICIPANTS");
         }
     }
     else
     {
         MessageBox.Show("No Event/s available", "NO EVENTS");
     }
 }
Пример #2
0
 private void btnEventRaffle_Click(object sender, EventArgs e)
 {
     if (cmbEvents.Text != "" && adduList.Count > 0)
     {
         string     tableName     = eventData[eventId][4];
         float      timerDuration = (float)npDuration.Value;
         RaffleAddu rsInitialize  = new RaffleAddu(adduList, tableName, timerDuration, this);
         rsInitialize.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("No Event/s available", "NO EVENTS");
     }
 }