public void ShowKeywordDialog()
 {
     using (FormKeyword dialog = new FormKeyword()) {
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             string keyword = Keyword.Template.Replace("{keyword}", dialog.SelectedKeyword.Value);
             InsertKeyword(keyword);
         }
     }
 }
Beispiel #2
0
 private void InsertButton_Click(object sender, EventArgs e)
 {
     using (FormKeyword dialog = new FormKeyword()) {
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             string keyword = Keyword.Template.Replace("{keyword}", dialog.SelectedKeyword.Value);
             InsertKeyword(keyword);
         }
     }
 }