private void LoadPublishVersionDataSource() { foreach (PluginVersion version in this.Versions) { PublishingVersionInfo publishingVersionInfo = new PublishingVersionInfo(version); this.PublishVersionDataSource.Add(publishingVersionInfo); } }
private void dgvPublishVersions_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (dgvPublishVersions.Columns[e.ColumnIndex].Name.Equals("colMessage")) { PublishingVersionInfo info = this.dgvPublishVersions[e.ColumnIndex, e.RowIndex].OwningRow.DataBoundItem as PublishingVersionInfo; MessageForm form = new MessageForm(info.Message); form.ShowDialog(); } else if (dgvPublishVersions.Columns[e.ColumnIndex].Name.Equals("colCreatePatch")) { this.dgvPublishVersions.EndEdit(); } }
private void btnAction_Click(object sender, System.EventArgs e) { if (!this._publicationCompleted) { this.Cursor = this._currentCursor = Cursors.WaitCursor; List <PublishingVersionInfo> infos = new List <PublishingVersionInfo>(); foreach (DataGridViewRow row in this.dgvPublishVersions.Rows) { PublishingVersionInfo info = row.DataBoundItem as PublishingVersionInfo; info.SetStatus(PublishingStatus.Pending, string.Empty); infos.Add(info); } PublishingManager.Instance.Publish(infos, this.cbSaveLocalMediaCopy.Checked, this.txtLocalMediaPath.Text); this.DisableControls(); } else { this.Close(); } }