public void DownloadCompletedHandler(object sender, EventArgs e) { if (Settings.Default.ShowBalloonNotification) { WebDownloadClient download = (WebDownloadClient)sender; if (download.Status == DownloadStatus.Completed) { string title = "Загрузка завершена"; string text = download.FileName + " окончил загрузку."; XNotifyIcon.ShowBalloonTip(title, text, BalloonIcon.Info); } } }
public void DownloadCompletedHandler(object sender, EventArgs e) { if (Settings.Default.ShowBalloonNotification) { var download = (WebDownloadClient)sender; if (download.Status == DownloadStatus.Completed) { string title = "Download Completed"; string text = $"{download.FileName} has finished downloading."; XNotifyIcon.ShowBalloonTip(title, text, BalloonIcon.Info); } } }