This commit is contained in:
2012-04-04 16:16:36 +00:00
parent 9fd12948f4
commit 4d24f93f3a
2 changed files with 29 additions and 9 deletions

View File

@@ -222,14 +222,14 @@ namespace VEPROMS.CSLA.Library
{
get
{
string s = _Xp["format", "columns"];
string s = _Xp["Format", "Columns"];
//If there is no value to get, then get the parent value (a.k.a. default value).
if (s == string.Empty)
s = _Xp.ParentValue("format", "columns"); // get the parent value
s = _Xp.ParentValue("Format", "Columns"); // get the parent value
// If there is no parent value, then use the volian default
if (s == string.Empty)
return FormatColumns.Default;// default to volian default
return FormatColumns.TwoColumn;// At the procedure level, default to Two column
return (FormatColumns)int.Parse(s);
}
@@ -238,15 +238,15 @@ namespace VEPROMS.CSLA.Library
// if value being saved is same as the parent value, then clear the value (save blank). This will
// reset the data to use the parent value.
string parval = _Xp.ParentValue("format", "columns"); // get the parent value
string parval = _Xp.ParentValue("Format", "Columns"); // get the parent value
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
parval = ((int)(FormatColumns.Default)).ToString();
if (parval.Equals(((int)value).ToString()))
_Xp["format", "columns"] = string.Empty; // reset to parent value
_Xp["Format", "Columns"] = string.Empty; // reset to parent value
else
_Xp["format", "columns"] = ((int)value).ToString(); // save selected value
_Xp["Format", "Columns"] = ((int)value).ToString(); // save selected value
OnPropertyChanged("Format_Columns");
}