Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            /*TO DO: Permissions*/
            if (dataGridView1.SelectedRows.Count > 0)
            {

                int workingIndex = dataGridView1.SelectedRows[0].Index;
                AddEditBooking c = new AddEditBooking();
                c.user = User;
                c.currentBookingID = ListOfBookings[workingIndex].Id;

                c.ShowDialog();
                if (c.DialogResult == DialogResult.OK)
                {
                    Rebind();
                }
            }
        }
Ejemplo n.º 2
0
 private void btnAddBooking_Click(object sender, EventArgs e)
 {
     /*TO DO: Permissions*/
     AddEditBooking c = new AddEditBooking();
     c.user = User;
     c.ShowDialog();
     if (c.DialogResult == DialogResult.OK)
     {
         Rebind();
     }
 }