/// <summary> /// Static Constructor /// </summary> static MoonEngine() { StateManager.CurrentDate = DateTime.Today; StateManager.AutoUpdate = true; StateManager.AutoRun = AutoRunHelper.IsAutoRunEnabled(AppName); }
/// <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); }