/// <summary>
        /// Handle the Siebel login event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonLogin_Click(object sender, EventArgs e)
        {
            // Set wait pointer
            using (new HourGlass())
            {
                toolStripStatusLabel.Text = "Logging in...";
                Application.DoEvents();

                // Get connect string and user details
                string userName = settings.conUser;
                string password = settings.conPassword;
                string host     = settings.conHost;
                string ent      = settings.conEnt;
                string om       = settings.conOM;

                siebelApp = new SiebelApp(userName, password, host, ent, om);

                // Login with the corresponding criteria
                try
                {
                    // Connect to the Siebel App
                    siebelApp.Connect(true);
                    // Toggle the controls
                    toggleControls();

                    // Obtain list of employees
                    List <SiebelUsers> siebelUsers = new List <SiebelUsers>();
                    siebelApp.GetAllUsers(siebelUsers);
                    populateUserControl(comboBoxConfigUpdatedByFilter, siebelUsers);
                    populateUserControl(comboBoxScriptUpdatedByFilter, siebelUsers);
                    populateUserControl(comboBoxConfigCreatedByFilter, siebelUsers);
                    populateUserControl(comboBoxScriptCreatedByFilter, siebelUsers);
                    populateUserControl(comboBoxUser, siebelUsers);
                }
                catch (ReposAnalyserException e1)
                {
                    showError("Siebel Connection Error", "A problem has occurred connecting to Siebel. Please check the connect string, username and password parameters",
                              e1.ToString());
                }
                catch (Exception e2)
                {
                    showError("Unexpected Connection Error", "An unexpected error has occurred",
                              e2.ToString());
                }
                finally
                {
                    // Set wait pointer
                    toolStripStatusLabel.Text = "Ready";
                    Application.DoEvents();
                }
            }
        }
        public FormReposAnalyser()
        {
            InitializeComponent();
            settings = new Settings();
            panelHome.BringToFront();
            comboBoxVer.SelectedIndex     = 0;
            comboBoxConType.SelectedIndex = 0;

            siebelApp = new SiebelApp();

            toggleConnectControls(false);

            // Load defaults
            loadDefaults();

            siebelRep = new SiebelRepository("Siebel Repository");

            // Load the news page
            webBrowserNews.Navigate("http://www.mroshaw.co.uk/OllerenshawIT/files/RepAnalyser/News.htm");
            // webBrowserNews.Navigate(Application.StartupPath + @"\News.htm");
        }