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

Diff of /trunk/TSAdminTool/frmAdmin.cs

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

revision 153 by william, Sun Jul 15 13:17:36 2012 UTC revision 154 by william, Sun Jul 15 13:27:58 2012 UTC
# Line 764  namespace AnywhereTS Line 764  namespace AnywhereTS
764    
765              // Setup managed mode. This can alternatively be set from frmConfigMode, but this form is now disabled              // Setup managed mode. This can alternatively be set from frmConfigMode, but this form is now disabled
766              // Create Datbase directory              // Create Datbase directory
767              string dataDir = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + @"\AnywhereTS";              //string dataDir = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + @"\AnywhereTS";
768              try              //try
769              {              //{
770                  Directory.CreateDirectory(dataDir);              //    Directory.CreateDirectory(dataDir);
771              }              //}
772              catch (Exception ex)              //catch (Exception ex)
773              {              //{
774                  this.Cursor = Cursors.Default;              //    this.Cursor = Cursors.Default;
775                  MessageBox.Show("Could not create directory '" + dataDir + "'. Error: " + ex.Message);              //    MessageBox.Show("Could not create directory '" + dataDir + "'. Error: " + ex.Message);
776                  using (log4net.NDC.Push(string.Format("directory={0}", dataDir)))              //    using (log4net.NDC.Push(string.Format("directory={0}", dataDir)))
777                  {              //    {
778                      Logging.ATSAdminLog.Error("Could not create directory.");              //        Logging.ATSAdminLog.Error("Could not create directory.");
779                  }              //    }
780                  return false;              //    return false;
781              }              //}
782    
783              ATSGlobals.managedMode = 1; // We are running in Managed Mode              ATSGlobals.managedMode = 1; // We are running in Managed Mode
784    

Legend:
Removed from v.153  
changed lines
  Added in v.154

  ViewVC Help
Powered by ViewVC 1.1.22