/// <summary>The poll power status.</summary> private void PollPowerStatus() { if (DateTime.Now.Subtract(this.pollPowerStatusLastPoll).TotalSeconds < this.pollPowerStatusEverySec) { return; } this.powerStatus = new NativeMethods.StructSystemPowerStatus(); NativeMethods.GetSystemPowerStatus(ref this.powerStatus); }