private void connect() { bool exists = false; string str = Environment.GetFolderPath( Environment.SpecialFolder.MyDocuments) + "\\quotes.db"; if (File.Exists(str)) { exists = true; } db = new QuotesDB.Sqlite(); db.openDatabase(str); if (!exists) { db.createDatabase(); } }
public AddQuote(QuotesDB.Sqlite db) { this.db = db; InitializeComponent(); }