public void BackToSearch()
        {
            btnSearchFlight.BackColor = SystemColors.Control;
            btnSearchFlight.Enabled   = false;
            btnBooking.Visible        = false;
            SearchFlight searchFlight = new SearchFlight(FlightsToBook, this);

            AddControls(searchFlight);
        }
        private void btnSearchFlight_Click(object sender, System.EventArgs e)
        {
            DialogResult answer = MessageBox.Show("If you leave this tab you will lose this search and all inputed data in this form!\nDo you want to continue?", "Alert - Confirm Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

            if (answer == DialogResult.Yes)
            {
                SearchFlight search = new SearchFlight(FlightsToBook, this);
                AddControls(search);
                btnBooking.Visible        = false;
                btnSearchFlight.BackColor = SystemColors.Control;
            }
        }
        public ClientServices(FrontForm form)
        {
            FlightsToBook = SaveLoad.LoadFlights();
            Form          = form;
            InitializeComponent();

            btnBooking.Visible = false;

            //first tab to be loaded
            SearchFlight searchFlight = new SearchFlight(FlightsToBook, this);

            AddControls(searchFlight);
            btnSearchFlight.BackColor = SystemColors.Control;
            btnSearchFlight.Enabled   = false;
        }