Example #1
0
 private void ReservationManagerButton_Click(object sender, EventArgs e)
 {
     if (ReservationListView.SelectedIndices != null && ReservationListView.SelectedIndices.Count > 0)
     {
         ListView.SelectedIndexCollection c = ReservationListView.SelectedIndices;
         string          sid             = ReservationListView.Items[c[0]].SubItems[0].Text.ToString();
         ReservationForm ReservationForm = new ReservationForm(UserID, sid);
         ReservationForm.Show();
     }
 }
 private void button1_Click(object sender, EventArgs e)
 {
     if (ReservationList.SelectedIndices != null && ReservationList.SelectedIndices.Count > 0)
     {
         ListView.SelectedIndexCollection c = ReservationList.SelectedIndices;
         string          uid             = ReservationList.Items[c[0]].SubItems[1].Text.ToString();
         ReservationForm ReservationForm = new ReservationForm(uid, sid);
         ReservationForm.Show();
         this.Hide();
     }
 }