Exemple #1
0
 /// <summary>
 /// Shows the main CodeTagForm.
 /// </summary>
 public void ShowCodeTagForm()
 {
     if (_codeTagForm == null)
     {
         _codeTagForm         = new CodeTagForm(() => _codeSnippetSource);
         _codeTagForm.Closed += delegate { _codeTagForm = null; };
         _codeTagForm.Show();
         _codeTagForm.Activate();
     }
     else
     {
         _codeTagForm.Activate();
     }
 }
 /// <summary>
 /// Shows the main CodeTagForm.
 /// </summary>
 public void ShowCodeTagForm()
 {
     if (_codeTagForm == null)
     {
         _codeTagForm = new CodeTagForm(
             () => _codeSnippetSource,
             (fileName, code, tags) =>
             {
                 ShowEditorForm();
                 _editorForm.EditCodeSnippet(fileName, code, tags);
             });
         _codeTagForm.Closed += delegate { _codeTagForm = null; };
         _codeTagForm.Show();
         _codeTagForm.Activate();
     }
     else
     {
         _codeTagForm.Activate();
     }
 }
 /// <summary>
 /// Shows the main CodeTagForm.
 /// </summary>
 public void ShowCodeTagForm()
 {
     if (_codeTagForm == null)
     {
         _codeTagForm = new CodeTagForm(() => _codeSnippetSource);
         _codeTagForm.Closed += delegate { _codeTagForm = null; };
         _codeTagForm.Show();
         _codeTagForm.Activate();
     }
     else { _codeTagForm.Activate(); }
 }