}\r
\r
#region The Menu Bar\r
-\r
#region File Menu\r
\r
private void mnu_open_Click(object sender, EventArgs e)\r
}\r
\r
#endregion\r
-\r
#endregion\r
\r
// -------------------------------------------------------------- \r
\r
private void drop_chapterStart_SelectedIndexChanged(object sender, EventArgs e)\r
{\r
+ lbl_chptWarn.Visible = false;\r
QueryEditorText.Text = "";\r
if ((drop_chapterFinish.Text != "Auto") && (drop_chapterStart.Text != "Auto"))\r
{\r
\r
if (chapterFinish < chapterStart)\r
{\r
- MessageBox.Show("Invalid Chapter Range! - Final chapter can not be smaller than the starting chapter.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ lbl_chptWarn.Visible = true;\r
+ lbl_chptWarn.Text = "Invalid Chapter Range!";\r
}\r
}\r
catch (Exception)\r
{\r
- MessageBox.Show("Invalid Character Entered!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
+ lbl_chptWarn.Visible = true;\r
+ lbl_chptWarn.Text = "Invalid Chapter Range!";\r
}\r
}\r
\r
\r
private void drop_chapterFinish_SelectedIndexChanged(object sender, EventArgs e)\r
{\r
+ lbl_chptWarn.Visible = false;\r
QueryEditorText.Text = "";\r
if ((drop_chapterFinish.Text != "Auto") && (drop_chapterStart.Text != "Auto"))\r
{\r
\r
if (chapterFinish < chapterStart)\r
{\r
- MessageBox.Show("Invalid Chapter Range! - Start chapter can not be larger than the Final chapter.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ lbl_chptWarn.Visible = true;\r
+ lbl_chptWarn.Text = "Invalid Chapter Range!";\r
}\r
}\r
catch (Exception)\r
{\r
- MessageBox.Show("Invalid Character Entered!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);\r
+ lbl_chptWarn.Visible = true;\r
+ lbl_chptWarn.Text = "Invalid Chapter Range!";\r
}\r
}\r
}\r
}\r
} \r
\r
- /// <summary>\r
- /// The Query Generation Function\r
- /// This function was imported from old vb.net version of this application.\r
- /// It could probably do with being cleaned up a good deal at some point\r
- /// </summary>\r
- /// <returns></returns>\r
+ // The Query Generation Function\r
+ // This function was imported from old vb.net version of this application.\r
+ // It could probably do with being cleaned up a good deal at some point\r
+ \r
public string GenerateTheQuery()\r
{\r
string source = text_source.Text;\r