private void jobCheck_Tick(object sender, EventArgs e) { if (!this.i2g.IsBusy) { foreach (ListViewItem item in this.listView1.Items) { IsoEntry tag = (IsoEntry)item.Tag; if (tag.Status == IsoEntryStatus.Idle) { tag.Status = IsoEntryStatus.InProgress; item.Tag = tag; this.i2g = new Chilano.Iso2God.Iso2God(); this.i2g.Completed += new Iso2GodCompletedEventHandler(this.i2g_Completed); this.i2g.Progress += new Iso2GodProgressEventHandler(this.i2g_Progress); this.i2g.RunWorkerAsync(tag); this.jobCheck.Enabled = false; return; } } this.jobCheck.Enabled = false; } }
private void jobCheck_Tick(object sender, EventArgs e) { if (!this.i2g.IsBusy) { foreach (ListViewItem item in this.listView1.Items) { IsoEntry tag = (IsoEntry) item.Tag; if (tag.Status == IsoEntryStatus.Idle) { tag.Status = IsoEntryStatus.InProgress; item.Tag = tag; this.i2g = new Chilano.Iso2God.Iso2God(); this.i2g.Completed += new Iso2GodCompletedEventHandler(this.i2g_Completed); this.i2g.Progress += new Iso2GodProgressEventHandler(this.i2g_Progress); this.i2g.RunWorkerAsync(tag); this.jobCheck.Enabled = false; return; } } this.jobCheck.Enabled = false; } }