예제 #1
0
 /// <summary>
 /// Static Constructor
 /// </summary>
 static MoonEngine()
 {
     StateManager.CurrentDate = DateTime.Today;
     StateManager.AutoUpdate  = true;
     StateManager.AutoRun     = AutoRunHelper.IsAutoRunEnabled(AppName);
 }
예제 #2
0
 /// <summary>
 /// Updates the registry to run on startup
 /// </summary>
 /// <param name="runOnStartup">whether to run on startup</param>
 void UpdateRunOnStartUp()
 {
     AutoRunHelper.SetAutoRunEnabled(AppName, Application.ExecutablePath.ToString(), StateManager.AutoRun);
 }