Display a MessageBox if in debug mode ItemInfo (frmPropGrid) is opened without selecting an Item
Added Interface properties SearchDVPath and SearchPath
This commit is contained in:
@@ -60,6 +60,53 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public partial class PartInfo : IVEDrillDownReadOnly
|
||||
{
|
||||
private string _SearchDVPath;
|
||||
public string SearchDVPath
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_SearchDVPath == null)
|
||||
_SearchDVPath = ActiveParent.SearchDVPath;
|
||||
return _SearchDVPath;
|
||||
}
|
||||
}
|
||||
private string _SearchPath;
|
||||
public string SearchPath
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_SearchPath == null)
|
||||
{
|
||||
string partText = "";
|
||||
switch ((E_FromType) FromType)
|
||||
{
|
||||
case E_FromType.Procedure:
|
||||
break;
|
||||
case E_FromType.Section:
|
||||
break;
|
||||
case E_FromType.Caution:
|
||||
partText = ".Caution";
|
||||
break;
|
||||
case E_FromType.Note:
|
||||
partText = ".Note";
|
||||
break;
|
||||
case E_FromType.RNO:
|
||||
partText = ".RNO";
|
||||
break;
|
||||
case E_FromType.Step:
|
||||
break;
|
||||
case E_FromType.Table:
|
||||
partText = ".Table";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
_SearchPath = ActiveParent.SearchPath + partText;
|
||||
}
|
||||
return _SearchPath;
|
||||
}
|
||||
}
|
||||
|
||||
internal PartInfo(SafeDataReader dr, ItemInfo itemInfo)
|
||||
{
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] PartInfo.Constructor", GetHashCode());
|
||||
|
Reference in New Issue
Block a user