/// <summary> /// Inserts App Name, Error and Cause into the BugTable table. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void reportBug_Click(object sender, EventArgs e) { if (checkInputs()) { String commandString = "INSERT INTO BugTable(App, Error, Cause) VALUES (@app, @error, @cause)"; insertRecord(txtAppName.Text, txtError.Text, txtCause.Text, commandString); cleartxtBoxes(); MessageBox.Show("Bug Successfully Reported"); this.Close(); frmHomePage.Show(); } }
/// <summary> /// Closes the current form. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void closeToolStripMenuItem_Click(object sender, EventArgs e) { frmHomePage.Show(); this.Close(); }