public ManageEventRequestForm(EventRequestForm mainForm)// create new event request
        {
            InitializeComponent();

            this.mainForm = mainForm;

            ClientController clientController = new ClientController();

            clientListBox.DataSource    = clientController.Clients;
            clientListBox.DisplayMember = "FirstName";

            feedbackLabel.Hide();
            feedbackTextBox.Hide();
        }
        public ManageEventRequestForm(EventRequestForm mainForm, EventRequest eventRequest) // working with existing request
        {
            InitializeComponent();

            this.mainForm     = mainForm;
            this.eventRequest = eventRequest;

            #region fill info
            recordNrTextBox.Text = eventRequest.RecordNr;
            clientListBox.Items.Add(eventRequest.Client.FirstName);
            eventTypeTextBox.Text       = eventRequest.EventType;
            fromDateTimePicker.Value    = eventRequest.From;
            toDateTimePicker.Value      = eventRequest.To;
            attendeesNumericUpDown.Text = eventRequest.Attendees.ToString();
            BudgetTextBox.Text          = eventRequest.Budget.ToString();
            feedbackTextBox.Text        = eventRequest.FinancialFeedback;

            recordNrTextBox.Enabled        = false;
            clientListBox.Enabled          = false;
            eventTypeTextBox.Enabled       = false;
            fromDateTimePicker.Enabled     = false;
            toDateTimePicker.Enabled       = false;
            attendeesNumericUpDown.Enabled = false;
            BudgetTextBox.Enabled          = false;
            #endregion

            if (eventRequest.State == EventRequest.States.Finalized || eventRequest.State == EventRequest.States.Declined)
            {
                feedbackTextBox.Enabled = false;
                saveButton.Hide();
            }
            else if (Session.UserSession.LoggedInUser.Role == User.Roles.SeniorCustomerServiceOfficer || Session.UserSession.LoggedInUser.Role == User.Roles.AdministrationDepartmentManager)
            {//if cannot edit can only approve
                feedbackTextBox.Enabled = false;
                saveButton.Text         = "Approve";
                declineButton.Show();
            }
        }