/[AnywhereTS-MSSQL]/trunk/TSAdminTool/frmAddTFTP.cs
ViewVC logotype

Diff of /trunk/TSAdminTool/frmAddTFTP.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/TSAdminTool/frmAddTFTP.cs	2012/07/11 14:19:13	4
+++ trunk/TSAdminTool/frmAddTFTP.cs	2012/07/12 14:17:14	46
@@ -35,6 +35,10 @@
             {
                 this.Cursor = Cursors.Default;
                 MessageBox.Show("Invalid path.");
+                using (log4net.NDC.Push(string.Format("path={0}", inputstring)))
+                {
+                    Logging.ATSAdminLog.Warn("Invalid path.");
+                }
                 textInput.Focus();
                 return;
             }
@@ -44,6 +48,10 @@
             {
                 MessageBox.Show("Cannot find or access directory '" + inputstring + "' Please check spelling and rights!");
 
+                using (log4net.NDC.Push(string.Format("path={0}", inputstring)))
+                {
+                    Logging.ATSAdminLog.Warn("Cannot find or access directory.");
+                }
                 textInput.SelectAll();
                 textInput.Focus();
                 return;
@@ -60,7 +68,7 @@
             DialogResult result = folderBrowserDialog.ShowDialog();
             if (result == DialogResult.OK)
             {
-                string strPath; // The path provided by the user 
+                string strPath = string.Empty; // The path provided by the user 
 
                 // Browse to a folder by displaying the folder browse Dialog
                 try
@@ -70,6 +78,10 @@
                 catch (NotSupportedException)
                 {   // User has browsed to a non folder
                     MessageBox.Show("Object is not a file folder.");
+                    using (log4net.NDC.Push(string.Format("path={0}", strPath)))
+                    {
+                        Logging.ATSAdminLog.Warn("Object is not a file folder.");
+                    }
                     goto Rebrowse;
                 }
                 textInput.Text = strPath;

 

  ViewVC Help
Powered by ViewVC 1.1.22