This commit is contained in:
2009-01-27 15:34:05 +00:00
parent 44b6d0e177
commit 20783cc178
3 changed files with 801 additions and 116 deletions

View File

@@ -182,45 +182,6 @@ namespace VEPROMS.CSLA.Library
return s;
}
#endregion
#region RODefaults
[Category("Referenced Objects")]
[DisplayName("RO Path")]
[RefreshProperties(RefreshProperties.All)]
[Description("Path to RO.FST")]
public string RODefaults_ropath
{
get
{
string s = _Xp["RODefaults", "ROPATH"];// get the saved value
//If there is no value to get, then get the parent value (a.k.a. default value).
if (s == string.Empty)
s = _Xp.ParentValue("RODefaults", "ROPATH"); // get the parent value
// If there is no parent value, then use the volian default
if (s == string.Empty)
s = ""; // no default for empty for path
return s;
}
set
{
// 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("RODefaults", "ROPATH"); // get the parent value
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
parval = "";
if (parval.Equals(value))
_Xp["RODefaults", "ROPATH"] = string.Empty; // reset to parent value
else
_Xp["RODefaults", "ROPATH"] = value; // save selected value
OnPropertyChanged("RODefaults_ropath");
}
}
#endregion
#region GraphicsCategory // From veproms.ini
public bool CanWrite(string str)
{
@@ -665,82 +626,6 @@ namespace VEPROMS.CSLA.Library
}
}
#endregion
#region DefaultsCategory // from proc.ini
[Category("Referenced Objects")]
[DisplayName("Default RO Prefix")]
[RefreshProperties(RefreshProperties.All)]
[Description("Default Setpoint Prefix")]
public string Default_SPPrefix
{
get
{
string s = _Xp["default", "spprefix"];// get the saved value
//If there is no value to get, then get the parent value (a.k.a. default value).
if (s == string.Empty)
s = _Xp.ParentValue("default", "spprefix"); // get the parent value
// If there is no parent value, then use the volian default
if (s == string.Empty)
s = "SP1";// default to volian default
return s;
}
set
{
// 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("default", "spprefix"); // get the parent value
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
parval = "SP1";
if (parval.Equals(value))
_Xp["default", "spprefix"] = string.Empty; // reset to parent value
else
_Xp["default", "spprefix"] = value; // save selected value
OnPropertyChanged("Default_SPPrefix");
}
}
[Category("Referenced Objects")]
[DisplayName("Default Image Prefix")]
[RefreshProperties(RefreshProperties.All)]
[Description("Default Image Prefix")]
public string Default_IMPrefix
{
get
{
string s = _Xp["default", "imprefix"];// get the saved value
//If there is no value to get, then get the parent value (a.k.a. default value).
if (s == string.Empty)
s = _Xp.ParentValue("default", "imprefix"); // get the parent value
// If there is no parent value, then use the volian default
if (s == string.Empty)
s = "IG1";// default to volian default
return s;
}
set
{
// 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("default", "imprefix"); // get the parent value
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
parval = "IG1";
if (parval.Equals(value))
_Xp["default", "imprefix"] = string.Empty; // reset to parent value
else
_Xp["default", "imprefix"] = value; // save selected value
OnPropertyChanged("RO_IMPrefix");
}
}
#endregion
#region PrintSettingsCategory // From curset.dat
//PROPGRID: Hide Print Number of Copies
[Category("Print Settings")]
@@ -1182,7 +1067,7 @@ namespace VEPROMS.CSLA.Library
}
}
#endregion
#region General Support
public bool CheckUniqueName(string p)
{
FolderInfo parent = FolderInfo.Get(_Folder.ParentID);
@@ -1192,5 +1077,6 @@ namespace VEPROMS.CSLA.Library
}
return true;
}
#endregion
}
}