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]); }
private void Controller_Disconnected(object sender, UserIndexEventArgs e) { UpdateActiveController(); _notifyIcon.ShowBalloonTip(0, Resources.ControllerDisconnectedTitle, Resources.ControllerDisconnectedDescription.Replace(Resources.UserIndexPlaceholder, e.UserIndex.ToString()), ToolTipIcon.None); }
private void Controller_BatteryLow(object sender, UserIndexEventArgs e) { _notifyIcon.ShowBalloonTip(0, Resources.BatteryLowTitle, Resources.BatteryLowDescription.Replace(Resources.UserIndexPlaceholder, e.UserIndex.ToString()), ToolTipIcon.None); }