This commit is contained in:
@@ -163,43 +163,6 @@ namespace VEPROMS.CSLA.Library
|
||||
|
||||
#region RODefaults // From proc.ini
|
||||
[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");
|
||||
}
|
||||
}
|
||||
[Category("Referenced Objects")]
|
||||
[DisplayName("Default RO Prefix")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Setpoint Prefix")]
|
||||
@@ -273,43 +236,6 @@ namespace VEPROMS.CSLA.Library
|
||||
OnPropertyChanged("RODefaults_graphicsprefix");
|
||||
}
|
||||
}
|
||||
[Category("Referenced Objects")]
|
||||
[DisplayName("Graphic File Extension")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Default File Extension")]
|
||||
public string Graphics_defaultext
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["Graphics", "defaultext"];// 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("Graphics", "defaultext"); // get the parent value
|
||||
// If there is no parent value, then use the volian default
|
||||
if (s == string.Empty)
|
||||
return s = "TIF";// 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("Graphics", "defaultext"); // get the parent value
|
||||
|
||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||
parval = "TIF";
|
||||
|
||||
if (parval.Equals(value))
|
||||
_Xp["Graphics", "defaultext"] = string.Empty; // reset to parent value
|
||||
else
|
||||
_Xp["Graphics", "defaultext"] = value; // save selected value
|
||||
|
||||
OnPropertyChanged("Graphics_defaultext");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region PrintSettingsCategory // From curset.dat
|
||||
[Category("Print Settings")]
|
||||
|
Reference in New Issue
Block a user