diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-03 11:16:56 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-03 11:16:56 +0200 |
| commit | c601f875010332cb4189a206a2c5ffa5fd6e8bea (patch) | |
| tree | 5d6fba71f8c7f956f6cdc2c17825a9951652f724 /src/GraphicObjects/GraphicObject.cs | |
| parent | 51e7ed159c72331bf1003b3fc88ee68753724a2a (diff) | |
remove image property, set img as fixed in template
modifié : Templates/CheckBox.goml
modifié : Templates/RadioButton.goml
modifié : src/GraphicObjects/CheckBox.cs
debug
modifié : Templates/MessageBox.goml
Deep clone
modifié : src/GraphicObjects/GraphicObject.cs
modifié : src/GraphicObjects/Group.cs
Deep clone and code clean
modifié : src/GraphicObjects/PrivateContainer.cs
modifié : src/GraphicObjects/RadioButton.cs
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 865e664c..3bdc354d 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -1443,17 +1443,20 @@ namespace Crow continue; if (pi.Name == "DataSource") continue; -// object[] att = pi.GetCustomAttributes (false); -// foreach (object o in att) { -// XmlIgnoreAttribute xia = o as XmlIgnoreAttribute; -// if (xia != null) -// continue; -// } pi.SetValue(result, pi.GetValue(this)); } return result; } #endregion + /// <summary> + /// full GraphicTree clone with binding definition + /// </summary> + public virtual GraphicObject DeepClone(){ + GraphicObject tmp = Clone () as GraphicObject; + foreach (Binding b in this.bindings) + tmp.Bindings.Add (new Binding (new MemberReference (tmp, b.Source.Member), b.Expression)); + return tmp; + } } } |