示例#1
0
        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();
            }
        }
示例#2
0
 public AddQuote(QuotesDB.Sqlite db)
 {
     this.db = db;
     InitializeComponent();
 }