Example #1
0
        //on Click function. this function initilize and show the child form for handle all bookings
        private void ShowBookings(object sender, EventArgs e)
        {
            AdminBookingList bookingFormChild = new AdminBookingList(this.Email, this.PassHash);

            bookingFormChild.MdiParent       = this;
            bookingFormChild.FormBorderStyle = FormBorderStyle.None;
            bookingFormChild.Dock            = DockStyle.Fill;
            bookingFormChild.Show();
        }
Example #2
0
        //on click function. this function reidirect the admin to a child form which the bookings of the selected user
        private void showBookingsForUser(object sender, EventArgs e)
        {
            AdminBookingList bookingFormChild = new AdminBookingList(this.Email, this.PassHash, usersListView.SelectedItems[0].Text);

            bookingFormChild.MdiParent       = this.ParentForm;
            bookingFormChild.FormBorderStyle = FormBorderStyle.None;
            bookingFormChild.Dock            = DockStyle.Fill;
            bookingFormChild.Show();
        }