summaryrefslogtreecommitdiff
path: root/Ivy/Ivy.snippet
blob: 53191775a202207a0bb7f47103bb06840926b4d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets
    xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>
        Ivy Message Callback
      </Title>
    </Header>
    <Snippet>
      <References>
        <Reference>
          <Assembly>Ivy.dll</Assembly>
        </Reference>
      </References>
      <Imports>
        <Import>
          <Namespace>IvyBus</Namespace>
        </Import>
      </Imports>
      <Declarations>
        <Literal>
          <ID>CallbackName</ID>
          <ToolTip>Replace with a function name.</ToolTip>
          <Default>bus_receive</Default>
        </Literal>
        <Literal>
          <ID>Expression</ID>
          <ToolTip>Replace with a regular expression.</ToolTip>
          <Default>"^(.*)"</Default>
        </Literal>
      </Declarations>
      <Code Language="CSharp">
        <![CDATA[
          [IvyBinding($Expression$)]
          private void $CallbackName$(object sender, IvyMessageEventArgs e)
          {
          }
          ]]>
      </Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>