コード例 #1
0
        /// <summary>
        /// Click event for Edit Titles button
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnEditTitles_Click(object sender, EventArgs e)
        {
            DocumentInfoTitlesForm newDocumentInfoTitlesForm = new DocumentInfoTitlesForm(AllTitles, CurrentTitles);

            newDocumentInfoTitlesForm.ShowDialog(this);
            this._DocumentInfo.ActionCode = this._DocumentInfo.ActionCode == ActionCode.New ? ActionCode.New : ActionCode.Edit;
            this._DocumentInfo.Titles     = newDocumentInfoTitlesForm.CurrentTitles.ToArray();
            this.UpdateTitlesList();
            this.Refresh();
        }
コード例 #2
0
 /// <summary>
 /// Click event for Edit Titles button
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnEditTitles_Click(object sender, EventArgs e)
 {
     DocumentInfoTitlesForm newDocumentInfoTitlesForm = new DocumentInfoTitlesForm(AllTitles, CurrentTitles);
     newDocumentInfoTitlesForm.ShowDialog(this);
     this._DocumentInfo.ActionCode = this._DocumentInfo.ActionCode == ActionCode.New ? ActionCode.New : ActionCode.Edit;
     this._DocumentInfo.Titles = newDocumentInfoTitlesForm.CurrentTitles.ToArray();
     this.UpdateTitlesList();
     this.Refresh();
 }