public Login(Application application)
        {
            WindowTools    windowTools     = new WindowTools();
            Window         window          = windowTools.GetWindow(application, "Login");
            WinFormTextBox usernameTextBox = windowTools.GetIUIItem <WinFormTextBox>(window, SearchCriteria.ByAutomationId("username"));
            WinFormTextBox passwordTextBox = windowTools.GetIUIItem <WinFormTextBox>(window, SearchCriteria.ByAutomationId("password"));
            Button         okButton        = windowTools.GetButton(window, SearchCriteria.ByAutomationId("okButton"));


            windowTools.ClickIUIItem(usernameTextBox);
            windowTools.PostText(usernameTextBox, username);
            windowTools.ClickIUIItem(passwordTextBox);
            windowTools.PostText(passwordTextBox, password);
            windowTools.DoubleClickIUItem(okButton);
        }
        public Search_ClientCaseSearch(Application application, string searchText)
        {
            WindowTools windowTools = new WindowTools();

            List <Window>  windows = windowTools.GetWindows(application);
            Window         window  = windowTools.GetWindow(windows, "ClientCaseSearch");
            WinFormTextBox textBox = windowTools.GetIUIItem <WinFormTextBox>(window, SearchCriteria.ByAutomationId("criteria"));

            windowTools.PostText(textBox, searchText);
            Button lastNameButton = windowTools.GetButton(window, SearchCriteria.ByAutomationId("lastNameButton"));

            windowTools.DoubleClickIUItem(lastNameButton);
            windows = windowTools.GetWindows(application);
            if (windows.Count > 2)
            {
                windows[2].Items[0].DoubleClick();
                Button newClientButton = windowTools.GetButton(window, SearchCriteria.ByAutomationId("newClientButton"));
                windowTools.DoubleClickIUItem(newClientButton);
            }
        }