// Handles the new connection dialog
        private void HandleConnectionDialog(UIItemContainer wizard, string dbName)
        {
            var serverNameText = wizard.Get <TextBox>(
                SearchCriteria.ByText(
                    _resourceHelper.GetConnectionUIDialogResourceString("serverLabel.Text")));

            serverNameText.Enter(@"(localdb)\v11.0");

            var refreshButton = wizard.Get <Button>(
                SearchCriteria.ByText(
                    _resourceHelper.GetConnectionUIDialogResourceString("refreshButton.Text")));

            refreshButton.Focus();

            var dbNameText = wizard.Get <TextBox>(
                SearchCriteria.ByText(
                    _resourceHelper.GetConnectionUIDialogResourceString("selectDatabaseRadioButton.Text")));

            dbNameText.Enter(dbName);

            var okButton = wizard.Get <Button>(
                SearchCriteria.ByText(
                    _resourceHelper.GetConnectionUIDialogResourceString("acceptButton.Text")));

            okButton.Click();
        }