private void Mainfrm_Load(object sender, EventArgs e) { LoadSetRegistryClass lsr = new LoadSetRegistryClass(); LoadSetRegistryClass.RegGetSysTVel(this); lsr.chkRegRun(); LoadSetRegistryClass.RegGetReminderVel(this); SQLToXMLDataOutputClass.xmlRefeshlst(this); this.greenFingersTableAdapter.Fill(this.greenFingersDBDataSet.GreenFingers); nfyIGf.Visible = true; ico = nfyIGf.Icon; }
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 delReminder_Click(object sender, EventArgs e) { SQLToXMLDataOutputClass.DelXML(this); }
private void btnClrXml_Click(object sender, EventArgs e) { SQLToXMLDataOutputClass.makeNewXmlFile(this); }
private void BtnSendToSQL_Click(object sender, EventArgs e) { SQLToXMLDataOutputClass.SQLOutputToXML(this); }