示例#1
0
        private void ShowBooking_Load(object sender, EventArgs e)
        {
            if (CC.AccessLevel() == 1)
            {
                btnApprove.Visible = false;
                btnDont.Visible    = false;
            }
            if (CC.AccessLevel() == 2)
            {
                btnEditBooking.Visible = false;
                btnSaveBooking.Visible = false;
                btnCancel.Visible      = false;
                btnApprove.Visible     = false;
                btnDont.Visible        = false;
            }
            else if (CC.AccessLevel() == 3)
            {
                btnEditBooking.Visible   = false;
                btnSaveBooking.Visible   = false;
                btnCancel.Visible        = false;
                btnBackToBooking.Visible = false;
            }
            else if (CC.AccessLevel() == 4)
            {
                btnEditBooking.Visible = false;
                btnSaveBooking.Visible = false;
                btnCancel.Visible      = false;
                btnApprove.Visible     = false;
                btnDont.Visible        = false;
            }
            int bookingID = BookingIDs;

            coboCountry.Enabled = false;
            coboCountry.Text    = CC.GetCountry(bookingID);
        }