private UpdateManager() { Assembly entryAssembly = Assembly.GetEntryAssembly(); this.CurrentVersion = (entryAssembly != null) ? entryAssembly.GetName().Version.ToString() : "1.0.0.0"; _current = this; this.UpdateInterval = 3600000; // 1 hour SystemEvents.PowerModeChanged += OnPowerChange; }
private UpdateManager() { System.Reflection.Assembly assembly = System.Reflection.Assembly.GetEntryAssembly(); this.CurrentVersion = assembly != null ? assembly.GetName().Version.ToString() : "1.0.0.0"; _current = this; }