Exemplo n.º 1
0
        FormDownloadCore()
        {
            InitializeComponent();
            InitUI();
            core = Service.Core.Instance;

            this.FormClosed += (s, e) => downloader?.Cancel();
            this.Show();
        }
Exemplo n.º 2
0
 void BtnCancel_Click(object sender, System.EventArgs e)
 {
     if (downloader != null && Lib.UI.Confirm(I18N.CancelDownload))
     {
         downloader?.Cancel();
     }
 }
Exemplo n.º 3
0
        FormDownloadCore()
        {
            InitializeComponent();
            InitUI();
            setting = Service.Setting.Instance;
            core    = Service.Core.Instance;

            this.FormClosed += (s, e) =>
            {
                if (downloader != null)
                {
                    downloader.Cancel();
                }
            };

            this.Show();
        }
Exemplo n.º 4
0
        FormDownloadCore()
        {
            InitializeComponent();
            InitUI();

            this.FormClosed += (s, e) =>
            {
                downloader?.Cancel();
                Service.Servers.Instance.LazyGC();
            };

#if DEBUG
            this.Icon = Properties.Resources.icon_light;
#endif

            this.Show();
        }