コード例 #1
0
 private void btnEditTranslator_Click(object sender, EventArgs e)
 {
     using (var dlg = new NameListForm(Source.Author.Translator.NamesList)) {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             txtTranslator.Text = Source.Author.Translator.NamesList.ToString();
         }
     }
 }
コード例 #2
0
 private void btnEditAuthor_Click(object sender, EventArgs e)
 {
     if (Source.Author.Author == null)
     {
         Source.Author.Author = new Author()
         {
             Objects = new List <object>()
             {
                 new BibliographyNameList()
                 {
                     People = new List <BibliographyPerson>()
                 }
             }
         };
     }
     using (var dlg = new NameListForm(Source.Author.Author.NamesList)) {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             txtAuthor.Text = Source.Author.Author.NamesList.ToString();
         }
     }
 }