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:
Rich
2011-05-09 14:09:20 +00:00
parent 4b967f6d4b
commit 7e6fefb00c
6 changed files with 113 additions and 5 deletions

View File

@@ -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());