Beispiel #1
0
 private void listSideEventView_DoubleClick(object sender, EventArgs e)
 {
     ListViewItem listItem = this.listSideEventView.SelectedItems[0];
     currentEventID = int.Parse(listItem.SubItems[0].Text);
     eventInfoForm eventInfoPage = new eventInfoForm(currentUser, currentEventID);
     eventInfoPage.Show();
 }
Beispiel #2
0
 private void getEventInfoButton_Click(object sender, EventArgs e)
 {
     try
     {
         if (listMainEventView.SelectedItems.Count > 0)
         {
             ListViewItem listItem = this.listMainEventView.SelectedItems[0];
             currentEventID = int.Parse(listItem.SubItems[1].Text);
             eventInfoForm eventInfoPage = new eventInfoForm(currentUser, currentEventID);
             eventInfoPage.Show();
         }
         else if (listSideEventView.SelectedItems.Count > 0)
         {
             ListViewItem listItem = this.listSideEventView.SelectedItems[0];
             currentEventID = int.Parse(listItem.SubItems[0].Text);
             eventInfoForm eventInfoPage = new eventInfoForm(currentUser, currentEventID);
             eventInfoPage.Show();
         }
     }
     catch
     {
         MessageBox.Show("Please select your event. Thank you.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }