예제 #1
0
        private void uxSearchButtonGo_Click(object sender, EventArgs e)
        {
            string userSearchText = uxSearchTextLabel.Text;
            // run query looking for something with
            Dictionary <string, string> queryDict = new Dictionary <string, string>();

            queryDict.Add("title", userSearchText);
            SqlQueryExecutor s = new SqlQueryExecutor("Data Source=mssql.cs.ksu.edu;Integrated Security=True");

            s.SearchByTitle(title: "bee movie");
        }
예제 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            string   connectionString = @"Data Source=(localdb)\MSSQLLocalDB;Integrated Security=True";
            NonQuery nq = new NonQuery(connectionString: connectionString);

            nq.PopulateFunctions();
            SqlQueryExecutor s = new SqlQueryExecutor(connectionString: connectionString);

            s.SearchByTitle("Bee");
            Application.Run(new MovieListView());
        }