Example #1
0
        static SQLiteUtil()
        {
            if (!File.Exists(dbf))
            {
                CreateNewDatabase(dbf);
            }

            //初始化调用
            TableCheck.load();
        }
Example #2
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            //判断数据表
            if (txtTable.Text.Trim() != "")
            {
                Global.save_table = txtTable.Text.Trim();
                if (!SQLiteUtil.ExitTable(Global.save_table))
                {
                    //创建表

                    TableCheck.createLogTable(Global.save_table);
                }
            }

            saveDB = !saveDB;
            if (saveDB)
            {
                btnSave.Text = "停止入库";
            }
            else
            {
                btnSave.Text = "开始入库";
            }
        }