FormDownloadCore() { InitializeComponent(); InitUI(); this.FormClosed += (s, e) => { downloader?.Cleanup(); Service.Setting.Instance.LazyGC(); }; #if DEBUG this.Icon = Properties.Resources.icon_light; #endif this.Show(); }
FormDownloadCore() { setting = Service.Setting.Instance; servers = Service.Servers.Instance; InitializeComponent(); InitUI(); this.FormClosed += (s, e) => { downloader?.Cleanup(); setting.LazyGC(); }; VgcApis.Libs.UI.AutoSetFormIcon(this); this.Show(); }