Example #1
0
        static void FillScenarioListBox(ListBox x)
        {
            SQLiteDataReader r    = SQLEngine.ThrowQuery("SELECT scr.ID, ScnCommands.Description, img.path FROM ScnScript scr left outer join ResImages img on scr.cmdAction = img.id left outer join ScnCommands on scr.cmdID = ScnCommands.ID");
            string           line = String.Empty;

            while (r.Read())
            {
                line = r["ID"].ToString() + " " + r["Description"].ToString() + " " + r["Path"].ToString();
                x.Items.Add(line);
            }
            r.Close();
        }
Example #2
0
        public static void FillScenarioList(ListBox x)
        {
            SQLiteDataReader r    = SQLEngine.ThrowQuery("SELECT Name FROM Scenarios");
            string           line = String.Empty;

            while (r.Read())
            {
                line = r["Name"].ToString();
                x.Items.Add(line);
            }
            r.Close();
            SQLiteConnection.ClearAllPools();
        }