blob: 637d627fe56702003ac26d78fcf068aa060e32e8 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace IvyBus
{
/* This is the Application side of binding storage */
/* association of a generated Key and a delegate and the expression */
/* this is SEND to other client */
[DefaultEvent("Callback")]
[DesignerCategory("Component")]
[DesignTimeVisible(true)]
[ToolboxItem(false)] /* should be added via Ivy component */
public class IvyApplicationBinding : System.ComponentModel.Component
{
private BindingType binding;
#if (!PocketPC)
[Category("Ivy")]
#endif
public BindingType Binding
{
get { return binding; }
set { binding = value; }
}
private ushort key;
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public ushort Key
{
get { return key; }
set { key = value; }
}
private object[] args;
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public object[] Args
{
get { return args; }
set { args = value; }
}
private string expression;
#if (!PocketPC)
[Category("Ivy")]
#endif
[DefaultValue(null)]
public string Expression
{
get { return expression; }
set { expression = value; }
}
[Browsable(true)]
public event EventHandler<IvyMessageEventArgs> Callback;
public IvyApplicationBinding()
{
}
[Browsable(false)]
public EventHandler<IvyMessageEventArgs> CallbackHandler
{
get
{
EventHandler<IvyMessageEventArgs> temp = Callback;
return temp;
}
}
}
}
|