Example #1
0
 static void Main(string[] args)
 {
     SQLiteDatabase database = new SQLiteDatabase("MediaLibrary.sqlite");
     QueryManager queriesManager = new QueryManager();
     queriesManager.db = database;
     //set a new requets
     queriesManager.Request = new QueryRequest("q", GroupByType.ByTitleStartingLetter);
     //List<Book> books = dbObjects.DbBook.Select("",database);
     Dictionary<string, List<Book>> querieResults = queriesManager.Response;
 }
Example #2
0
 //default constructor
 public MainWindow()
 {
     InitializeComponent();
     //init db
     this.InitDb("Data\\MediaLibrary.sqlite");
     //init queryManager, it makes a defalt query, when initilized
     this.queriesManager = new QueryManager();
     queriesManager.db = this.Data;
     //init delete and open buttons
     this.ToggleDeleteAndOpenSelectedBookButtons(false);
     //init librarian
     InitLibrarian();
     //set description panel refferances
     SetDescriptionRefferances();
     this.queriesManager.Request = new QueryRequest("", GroupByType.ByTitleStartingLetter);
     PopulateControls(queriesManager.Response);
     this.SelectFirstGroupFromGroupsList();
     //Test();
 }