OSDN Git Service

WinGui;
[handbrake-jp/handbrake-jp-git.git] / win / C# / frmOptions.cs
index eaa318d..11034f9 100644 (file)
@@ -23,6 +23,7 @@ namespace Handbrake
     public partial class frmOptions : Form\r
     {\r
         private frmMain mainWindow;\r
+        private bool optionsWindowLoading = true;\r
 \r
         public frmOptions(frmMain mw)\r
         {\r
@@ -198,6 +199,8 @@ namespace Handbrake
             // Use Experimental dvdnav\r
             if (Properties.Settings.Default.noDvdNav)\r
                 check_dvdnav.CheckState = CheckState.Checked;\r
+\r
+            optionsWindowLoading = false;\r
         }\r
 \r
         #region General\r
@@ -268,6 +271,18 @@ namespace Handbrake
             }\r
             else\r
                 Properties.Settings.Default.autoNamePath = text_an_path.Text;\r
+\r
+            if (text_an_path.Text.ToLower() == "{source_path}" && !optionsWindowLoading)\r
+            {\r
+                MessageBox.Show(\r
+                    "Be careful with this feature. Make sure you can write to the same folder as the source! \n\n If you are encoding from a DVD, do not use this feature as HandBrake will not be able to write to the DVD!",\r
+                    "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+            }\r
+\r
+            if (text_an_path.Text.ToLower().Contains("{source_path}") && text_an_path.Text.ToLower() != "{source_path}")\r
+            {\r
+                MessageBox.Show("Note you can not use the {source_path} within a path. {source_path} is the full source file path.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+            }\r
         }\r
 \r
         private void check_m4v_CheckedChanged(object sender, EventArgs e)\r