private bool CheckIfInitialized() { bool GoodToGo = false; InitializationError = ""; string ConnectionResults = db.CheckConnection(); if (ConnectionResults != "Connection successful, and database found!") { InitializationError += "This may be the first time you are running Franken+, as it is unable to connect to the MySQL database. It may also be the case that the server is not running, or your credentials have changed. If this is your first time to run Franken+, go to Menu->Settings and set up your connection; after verifying your connection, click Reset Database to set up Franken+ tables."; } if (InitializationError == "") { GoodToGo = true; } return(GoodToGo); }
private void dbTestButton_Click(object sender, EventArgs e) { SetParams(); MessageBox.Show(db.CheckConnection()); }