private void UpdateState() { if (this.packsDownloader.IsBusy) { this.State = DownloaderForm.States.Downloading; return; } this.State = (this.listBox.Items.Count > 0 ? DownloaderForm.States.DownloadEnabled : DownloaderForm.States.DownloadDisabled); }
private void packsDownloader_DownloadStarted(object sender, EventArgs e) { this.State = DownloaderForm.States.Downloading; }