Beispiel #1
0
        private void mnuSnippetEdit_Click(object sender, System.EventArgs e)
        {
            if (this.tvSnippets.SelectedNode == null)
            {
                return;
            }

            if (this.tvSnippets.SelectedNode.Tag == null)
            {
                return;
            }

            frmSnippetNew fSnippetNew = new frmSnippetNew((CSnippetter.CodeEntry) this.tvSnippets.SelectedNode.Tag, false, false);

            fSnippetNew.Show();
        }
Beispiel #2
0
        private void mnuSnippetAdd_Click(object sender, System.EventArgs e)
        {
            frmSnippetNew fSnippetNew = new frmSnippetNew("");

            fSnippetNew.Show();
        }
Beispiel #3
0
 private void mnuSnippetAdd_Click(object sender, System.EventArgs e)
 {
     frmSnippetNew fSnippetNew = new frmSnippetNew("");
     fSnippetNew.Show();
 }
Beispiel #4
0
        private void mnuSnippetEdit_Click(object sender, System.EventArgs e)
        {
            if (this.tvSnippets.SelectedNode == null)
                return;

            if (this.tvSnippets.SelectedNode.Tag == null)
                return;

            frmSnippetNew fSnippetNew = new frmSnippetNew((CSnippetter.CodeEntry)this.tvSnippets.SelectedNode.Tag, false, false);
            fSnippetNew.Show();
        }
Beispiel #5
0
 private void mnuCt_CreateSnippet_Click(object sender, System.EventArgs e)
 {
     // Create a snippet of code from the current selection
     frmSnippetNew fSnippetNew = new frmSnippetNew(this.txtEditor.SelectedView.SelectedText);
     fSnippetNew.Show();
 }