diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-09 12:29:50 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-09 12:37:03 +0100 |
| commit | cf0052b809ed26de154628e637f60acc7c47d5b0 (patch) | |
| tree | 410b3466564f79c40aab8af42a5ed481aecf746e /src | |
| parent | 53928ccbdda3ff284432aa668b81f4f733384b0c (diff) | |
allow binding of XmlIgnored props
Diffstat (limited to 'src')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 6 | ||||
| -rw-r--r-- | src/GraphicObjects/Trend.cs | 31 |
2 files changed, 35 insertions, 2 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 27f1fe5d..09b1776d 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -1295,8 +1295,7 @@ namespace Crow if (dv != null) defaultValue = dv.Value; } - if (!isAttribute) - continue; + if (attValue.StartsWith("{")) { //binding @@ -1307,6 +1306,9 @@ namespace Crow continue; } + if (!isAttribute) + continue; + if (pi.PropertyType == typeof(string)) { pi.SetValue (this, attValue, null); continue; diff --git a/src/GraphicObjects/Trend.cs b/src/GraphicObjects/Trend.cs new file mode 100644 index 00000000..ffc25c39 --- /dev/null +++ b/src/GraphicObjects/Trend.cs @@ -0,0 +1,31 @@ +// +// Trend.cs +// +// Author: +// Jean-Philippe Bruyère <jp_bruyere@hotmail.com> +// +// Copyright (c) 2016 jp +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +using System; + +namespace Crow +{ + public class Trend + { + public Trend () + { + } + } +} |