///Загрузить текст MSSQL запроса. private void FormParserLoad(object sender, EventArgs e) { FBAFile.FileReadTextObject(textQuery, FBAPath.PathSettings + "MSSQL.txt"); RefreshFiles(); sys.ConnectLocal(); progressBarParser.Value = 0; }
///Загрузка файла с запросом. private void LoadFileSQL(string TestName) { if (TestName == "") { return; } string FileName = TestName + ".txt"; if (!FBAFile.FileReadTextObject(ListSQL, FBAPath.PathSettings + FileName)) { ListSQL.Text = ""; } FileName = TestName + "_Result.txt"; if (!FBAFile.FileReadTextObject(ListResult, FBAPath.PathSettings + FileName)) { ListResult.Text = ""; } }
///Загрузить все. private void LoadAll() { FBAFile.FileReadTextObject(tbTextSQLite, FBAPath.PathAdditional + "NewDatabase_SQLite.sql"); FBAFile.FileReadTextObject(tbTextPostgre, FBAPath.PathAdditional + "NewDatabase_Postgre.sql"); FBAFile.FileReadTextObject(tbTextMSSQL, FBAPath.PathAdditional + "NewDatabase_MSSQL.sql"); }