Skip to content

Commit

Permalink
Added property for the administration's path
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgTrade committed Apr 17, 2015
1 parent c67db2e commit bda80bb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions nUpdate.Administration/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private static void Main(string[] args)
if (!firstInstance)
return;

AppDomain currentDomain = AppDomain.CurrentDomain;
//AppDomain currentDomain = AppDomain.CurrentDomain;
//currentDomain.UnhandledException += UnhandledException;
//Application.ThreadException += UnhandledThreadException;
Application.ApplicationExit += Exit;
Expand Down Expand Up @@ -90,19 +90,15 @@ private static void Exit(object sender, EventArgs e)
//}

/// <summary>
/// The root path.
/// The root path of the locally stored data.
/// </summary>
public static string Path
{
get
{
return System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
"nUpdate Administration");
}
get { return Properties.Settings.Default.ProgramPath; }
}

/// <summary>
/// The path of the config file for all projects.
/// The path of the configuration file for all projects.
/// </summary>
public static string ProjectsConfigFilePath
{
Expand Down

0 comments on commit bda80bb

Please sign in to comment.