property page fix
added some debug
This commit is contained in:
@@ -658,6 +658,22 @@ namespace VEPROMS.CSLA.Library
|
||||
OnPropertyChanged("Print_Pagination");
|
||||
}
|
||||
}
|
||||
[Category("Print Settings")]
|
||||
[DisplayName("PDFLocation")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("PDF Location")]
|
||||
public string Print_PDFLocation
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Xp["PrintSettings", "PDFLocation"];
|
||||
}
|
||||
set
|
||||
{
|
||||
_Xp["PrintSettings", "PDFLocation"] = value; // save selected value
|
||||
OnPropertyChanged("Print_PDFLocation");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Unit // From PROC.INI
|
||||
[Category("Unit")]
|
||||
|
@@ -155,13 +155,17 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_Procedure != null && _Procedure.MyContent.MyFormat != null) return _Procedure.MyContent.MyFormat.PlantFormat.FormatData.Name;
|
||||
if (_ProcedureInfo != null && _ProcedureInfo.MyContent.MyFormat != null) return _ProcedureInfo.MyContent.MyFormat.PlantFormat.FormatData.Name;
|
||||
if (_Procedure != null && _Procedure.MyContent.MyFormat != null) return _Procedure.MyContent.MyFormat.FullName; //.PlantFormat.FormatData.Name;
|
||||
if (_ProcedureInfo != null && _ProcedureInfo.MyContent.MyFormat != null) return _ProcedureInfo.MyContent.MyFormat.FullName;//.PlantFormat.FormatData.Name;
|
||||
return null;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (_Procedure != null) _Procedure.MyContent.MyFormat = FormatList.ToFormat(value); // Can only be set if _DocVersion is set
|
||||
if (_Procedure != null)
|
||||
{
|
||||
_Procedure.MyContent.MyFormat = FormatList.ToFormat(value); // Can only be set if _DocVersion is set
|
||||
_Procedure.ActiveFormat = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
[Category("Format Settings")]
|
||||
|
Reference in New Issue
Block a user