protected virtual void OnProgressChange(Iso2GodProgressArgs e) { if (this.Progress != null) { this.Progress(this, e); } }
private void i2g_Progress(object sender, Iso2GodProgressArgs e) { foreach (ListViewItem item in this.listView1.Items) { IsoEntry tag = (IsoEntry)item.Tag; if (tag.Status == IsoEntryStatus.InProgress) { ((ProgressBar)this.listView1.GetEmbeddedControl(5, item.Index)).Value = (e.Percentage > 100) ? 100 : e.Percentage; item.SubItems[6].Text = e.Message; item.Tag = tag; break; } } }
private void i2g_Progress(object sender, Iso2GodProgressArgs e) { foreach (ListViewItem item in this.listView1.Items) { IsoEntry tag = (IsoEntry) item.Tag; if (tag.Status == IsoEntryStatus.InProgress) { ((ProgressBar) this.listView1.GetEmbeddedControl(5, item.Index)).Value = (e.Percentage > 100) ? 100 : e.Percentage; item.SubItems[6].Text = e.Message; item.Tag = tag; break; } } }