private void chkfiles() { if (System.IO.File.Exists(@"GreenFingersDB.mdf")) { } else { MessageBox.Show("GreenFingersDB.mdf Database file is missing! Creating a new one, restart Green Fingers after it has closed.", "Green Fingers Error!", MessageBoxButtons.OK, MessageBoxIcon.Error); CreateNewDatabaseClass.ExtDB(this); this.Close(); } if (System.IO.File.Exists(@"Resources\SavedReminders.xml")) { } else { MessageBox.Show("Resources/SavedReminders.xml is missing! Creating a new one, restart Green Fingers after it has closed.", "Green Fingers Error!", MessageBoxButtons.OK, MessageBoxIcon.Error); SQLToXMLDataOutputClass.makeNewXmlFile(this); this.Close(); } }
private void btnClrXml_Click(object sender, EventArgs e) { SQLToXMLDataOutputClass.makeNewXmlFile(this); }