Save Enhanced Document Properties

Support new Properties Step_SourceToBackground, Step_BackgroundToSource, Step_SourceToDeviation, Step_DeviationToSource
This commit is contained in:
Rich
2015-09-12 15:45:06 +00:00
parent 694c887710
commit 551b71e525
2 changed files with 85 additions and 0 deletions

View File

@@ -297,6 +297,74 @@ namespace VEPROMS.CSLA.Library
OnPropertyChanged("Step_Responsibility");
}
}
public string Step_SourceToBackground
{
get
{
string s = _Xp["Step", "SourceToBackground"];
if (s == string.Empty) return null;
return s;
}
set
{
string s = _Xp["Step", "SourceToBackground"];
if (value != null && value.ToString() == s) return;
if (value == null && s != null) _Xp["Step", "SourceToBackground"] = null;
else _Xp["Step", "SourceToBackground"] = value.ToString();
OnPropertyChanged("Step_SourceToBackground");
}
}
public string Step_BackgroundToSource
{
get
{
string s = _Xp["Step", "BackgroundToSource"];
if (s == string.Empty) return null;
return s;
}
set
{
string s = _Xp["Step", "BackgroundToSource"];
if (value != null && value.ToString() == s) return;
if (value == null && s != null) _Xp["Step", "BackgroundToSource"] = null;
else _Xp["Step", "BackgroundToSource"] = value.ToString();
OnPropertyChanged("Step_BackgroundToSource");
}
}
public string Step_SourceToDeviation
{
get
{
string s = _Xp["Step", "SourceToDeviation"];
if (s == string.Empty) return null;
return s;
}
set
{
string s = _Xp["Step", "SourceToDeviation"];
if (value != null && value.ToString() == s) return;
if (value == null && s != null) _Xp["Step", "SourceToDeviation"] = null;
else _Xp["Step", "SourceToDeviation"] = value.ToString();
OnPropertyChanged("Step_SourceToDeviation");
}
}
public string Step_DeviationToSource
{
get
{
string s = _Xp["Step", "DeviationToSource"];
if (s == string.Empty) return null;
return s;
}
set
{
string s = _Xp["Step", "DeviationToSource"];
if (value != null && value.ToString() == s) return;
if (value == null && s != null) _Xp["Step", "DeviationToSource"] = null;
else _Xp["Step", "DeviationToSource"] = value.ToString();
OnPropertyChanged("Step_DeviationToSource");
}
}
#endregion
#region IItemConfig Members