+ string generatedQuery = queryGen.GenerateCLIQuery(this, 0, null);\r
+ string specifiedQuery = rtf_query.Text != "" ? rtf_query.Text : queryGen.GenerateCLIQuery(this, 0, null);\r
+ string query = string.Empty;\r
+\r
+ // Check to make sure the generated query matches the GUI settings\r
+ if (Properties.Settings.Default.PromptOnUnmatchingQueries && !string.IsNullOrEmpty(specifiedQuery) && generatedQuery != specifiedQuery)\r
+ {\r
+ DialogResult result = MessageBox.Show("The query under the \"Query Editor\" tab " +\r
+ "does not match the current GUI settings. Because the manual query takes " +\r
+ "priority over the GUI, your recently updated settings will not be taken " +\r
+ "into account when encoding this job." + Environment.NewLine + Environment.NewLine +\r
+ "Do you want to replace the manual query with the GUI-generated query?",\r
+ "Manual Query does not Match GUI",\r
+ MessageBoxButtons.YesNoCancel, MessageBoxIcon.Asterisk,\r
+ MessageBoxDefaultButton.Button3);\r
+\r
+ switch (result)\r
+ {\r
+ case DialogResult.Yes:\r
+ // Replace the manual query with the generated one\r
+ query = generatedQuery;\r
+ rtf_query.Text = generatedQuery;\r
+ break;\r
+ case DialogResult.No:\r
+ // Use the manual query\r
+ query = specifiedQuery;\r
+ break;\r
+ case DialogResult.Cancel:\r
+ // Don't start the encode\r
+ return;\r
+ }\r
+ }\r
+ else\r
+ {\r
+ query = generatedQuery;\r
+ }\r