/// <summary>Call this method if you need to be sure of when the database is initialized /// (e.g. to catch versioning exceptions)</summary> /// <remarks>Really, this should be necessary, not optional...</remarks> public static void InitializeDatabase() { if (database != null) { return; } database = new Sqlite.SqliteDataStore(IO.Path.Combine(UserDataStore.Path, "database.sqlite")); }
protected SqliteWordList(SqliteDataStore store, long setID) { DataStore = store; id = setID; worker = new Worker(store, this); undoList = new UndoList <Command>(); list = new BindingList <WordListEntry>(worker.GetAllEntries()); list.ListChanged += BindingListChanged; }
public static SqliteWordList FromSetID(SqliteDataStore store, long setID) { var list = new SqliteWordList(store, setID); if (!list.worker.Exists()) { list.Dispose(); return(null); } return(list); }
/// <summary>Call this method if you need to be sure of when the database is initialized /// (e.g. to catch versioning exceptions)</summary> /// <remarks>Really, this should be necessary, not optional...</remarks> public static void InitializeDatabase() { if (database != null) return; database = new Sqlite.SqliteDataStore(IO.Path.Combine(UserDataStore.Path, "database.sqlite")); }