private async void DeviceConnected(object sender, DeviceConnectedEventArgs e) { if (!this.IsEnabled) return; var changed = await this.UpdateDeviceAsync(e.Device); if (changed) this.UpdatePausedDeviceIds(); }
private void DeviceConnected(object sender, DeviceConnectedEventArgs e) { if (this.ShowDeviceConnectivityBalloons && DateTime.UtcNow - this.syncthingManager.StartedTime > syncedDeadTime) { this.taskbarIcon.HideBalloonTip(); this.taskbarIcon.ShowBalloonTip(Resources.TrayIcon_Balloon_DeviceConnected_Title, String.Format(Resources.TrayIcon_Balloon_DeviceConnected_Message, e.Device.Name), BalloonIcon.Info); } }