Example #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     DBOperations.DBConn            = new SQLiteConnection("Data Source=" + DBOperations.DBPath + ";Version=3;");
     DBOperations.DBComm            = new SQLiteCommand();
     DBOperations.DBComm.Connection = DBOperations.DBConn;
     if (!File.Exists(DBOperations.DBPath))
     {
         try
         {
             DBOperations.CreateDB();
         }
         catch (SQLiteException ex)
         {
             MessageBox.Show("Не удалось развернуть базу данных. Error: " + ex.Message);
         }
     }
     Application.Run(new FormLogIn());
 }