コード例 #1
0
 private void Controller_BatteryInformationUpdated(object sender, UserIndexEventArgs e)
 {
     if (_activeController.UserIndex != e.UserIndex)
     {
         return;
     }
     UpdateAppTrayIcon(_poller.ControllerBatteryInformation[e.UserIndex]);
     UpdateAppTrayText(_poller.Controllers.FirstOrDefault(c => c.UserIndex == e.UserIndex), _poller.ControllerBatteryInformation[e.UserIndex]);
 }
コード例 #2
0
 private void Controller_Disconnected(object sender, UserIndexEventArgs e)
 {
     UpdateActiveController();
     _notifyIcon.ShowBalloonTip(0, Resources.ControllerDisconnectedTitle, Resources.ControllerDisconnectedDescription.Replace(Resources.UserIndexPlaceholder, e.UserIndex.ToString()), ToolTipIcon.None);
 }
コード例 #3
0
 private void Controller_BatteryLow(object sender, UserIndexEventArgs e)
 {
     _notifyIcon.ShowBalloonTip(0, Resources.BatteryLowTitle, Resources.BatteryLowDescription.Replace(Resources.UserIndexPlaceholder, e.UserIndex.ToString()), ToolTipIcon.None);
 }