Exemplo n.º 1
0
 private void LoadPublishVersionDataSource()
 {
     foreach (PluginVersion version in this.Versions)
     {
         PublishingVersionInfo publishingVersionInfo = new PublishingVersionInfo(version);
         this.PublishVersionDataSource.Add(publishingVersionInfo);
     }
 }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
        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();
            }
        }