diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-08 07:29:36 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-08 07:29:36 +0100 |
| commit | a4ba4781ad7c88166b977e4144be6aaf4488fd57 (patch) | |
| tree | a01d5f11ff68f9eef0f99d28f2be7e2198938055 /src/CompilerServices | |
| parent | 2b314f436b5125db8eaa4b230c486d565ea1cec3 (diff) | |
combo popup sizing, binding creation in code
Diffstat (limited to 'src/CompilerServices')
| -rw-r--r-- | src/CompilerServices/CompilerServices.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CompilerServices/CompilerServices.cs b/src/CompilerServices/CompilerServices.cs index bdfe362e..aea199f4 100644 --- a/src/CompilerServices/CompilerServices.cs +++ b/src/CompilerServices/CompilerServices.cs @@ -93,6 +93,11 @@ namespace Crow Target = _source; Expression = _expression; } + public Binding(object _source, string _member, string _expression) + { + Target = new MemberReference (_source, _source.GetType().GetMember (_member) [0]); + Expression = _expression; + } #endregion public bool FindTarget(){ |