FormDownloadCore() { InitializeComponent(); InitUI(); core = Service.Core.Instance; this.FormClosed += (s, e) => downloader?.Cancel(); this.Show(); }
void BtnCancel_Click(object sender, System.EventArgs e) { if (downloader != null && Lib.UI.Confirm(I18N.CancelDownload)) { downloader?.Cancel(); } }
FormDownloadCore() { InitializeComponent(); InitUI(); setting = Service.Setting.Instance; core = Service.Core.Instance; this.FormClosed += (s, e) => { if (downloader != null) { downloader.Cancel(); } }; this.Show(); }
FormDownloadCore() { InitializeComponent(); InitUI(); this.FormClosed += (s, e) => { downloader?.Cancel(); Service.Servers.Instance.LazyGC(); }; #if DEBUG this.Icon = Properties.Resources.icon_light; #endif this.Show(); }