Embedded images
This commit is contained in:
@@ -358,6 +358,60 @@ namespace VEPROMS.CSLA.Library
|
||||
OnPropertyChanged("Step_Responsibility");
|
||||
}
|
||||
}
|
||||
#region RO image sizing
|
||||
// if the RO image (figure) is resized, save it in the step config, not in the ROImageConfig. If stored in ROImageConfig
|
||||
// the size is set for ALL uses.
|
||||
public int Step_ImageWidth
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["Step", "ImageWidth"];
|
||||
if (s == string.Empty) return 0;
|
||||
int tst = 0;
|
||||
try
|
||||
{
|
||||
tst = int.Parse(s);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return int.Parse(s);
|
||||
}
|
||||
set
|
||||
{
|
||||
string s = _Xp["Step", "ImageWidth"];
|
||||
if (value.ToString() == s) return;
|
||||
_Xp["Step", "ImageWidth"] = value.ToString();
|
||||
OnPropertyChanged("Step_ImageWidth");
|
||||
}
|
||||
}
|
||||
public int Step_ImageHeight
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["Step", "ImageHeight"];
|
||||
if (s == string.Empty) return 0;
|
||||
int tst = 0;
|
||||
try
|
||||
{
|
||||
tst = int.Parse(s);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return int.Parse(s);
|
||||
}
|
||||
set
|
||||
{
|
||||
string s = _Xp["Step", "ImageHeight"];
|
||||
if (value.ToString() == s) return;
|
||||
_Xp["Step", "ImageHeight"] = value.ToString();
|
||||
OnPropertyChanged("Step_ImageHeight");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
// Enhanced Documents
|
||||
private EnhancedDocuments _MyEnhancedDocuments = null;
|
||||
public EnhancedDocuments MyEnhancedDocuments
|
||||
|
Reference in New Issue
Block a user