示例#1
0
 public OptionsForm()
 {
     InitializeComponent();
     powerManager = new PowerManager();
     powerManager.OnPowerStatusChanged += PowerChangedHandler;
     powerManager.Start();
 }
 public PowerTaskController()
 {
     powerManager = new PowerManager();
     powerManager.OnPowerStatusChanged += PowerNotificationHandler;
 }