예제 #1
0
        FormDownloadCore()
        {
            InitializeComponent();
            InitUI();

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

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

            this.Show();
        }
예제 #2
0
        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();
        }