protected virtual void OnSnippetSelected(SnippetEventArgs args)
 {
     if (SnippetSelected != null)
     {
         SnippetSelected(this, args);
     }
 }
 private void ButtonClick(object sender, EventArgs e)
 {
     var b = (Button) sender;
     var args = new SnippetEventArgs(b.Text);
     SnippetSelected(this,args);
     //throwEvent(b.Text);
 }
	    protected virtual void OnSnippetSelected(SnippetEventArgs args)
		{
			if(SnippetSelected != null)
			{
				SnippetSelected(this,args);
			}
		}
        private void ButtonClick(object sender, EventArgs e)
        {
            var b    = (KryptonButton)sender;
            var args = new SnippetEventArgs(b.Text);

            SnippetSelected(this, args);
            //throwEvent(b.Text);
        }
 void SfSnippetSelected(object sender, SnippetEventArgs args)
 {
     _df.ContentText = _df.ContentText.Insert(_df.SelectionStart, new SnippetsHelper().Snippets[args.Snippet].ToString());
 }
Exemple #6
0
 void SfSnippetSelected(object sender, SnippetEventArgs args)
 {
     _df.ContentText = _df.ContentText.Insert(_df.SelectionStart,new SnippetsHelper().Snippets[args.Snippet].ToString());
 }
Exemple #7
0
 private void SfSnippetSelected(object sender, SnippetEventArgs args)
 {
     documentForm.ContentText = documentForm.ContentText.Insert(documentForm.SelectionStart, new SnippetsHelper().Snippets[args.Snippet].ToString());
 }