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

@@ -1141,12 +1141,35 @@ namespace VEPROMS.CSLA.Library
internal string _SearchDVPath;
public string SearchDVPath
{
get { return _SearchDVPath; }
get
{
if (_SearchDVPath == null)
_SearchDVPath = ActiveParent.SearchDVPath;
return _SearchDVPath;
}
}
internal string _SearchPath;
public string SearchPath
{
get { return _SearchPath; }
get
{
if (_SearchPath==null)
{
if (IsProcedure)
_SearchPath = ActiveParent.SearchPath + "\u0007" + (DisplayNumber ?? "") + "\u0011" + DisplayText ;
else if (IsSection)
_SearchPath = ActiveParent.SearchPath + "\u0007" + (DisplayNumber ?? "") + "\u0011" + DisplayText;
else
{
PartInfo myPart = FirstSibling.ItemPartCount > 0 ? FirstSibling.ItemParts[0] : null;
if(myPart != null)
_SearchPath = myPart.SearchPath + (!IsHigh ? "." : "\u0007") + Ordinal.ToString();
else
_SearchPath = ActiveParent.SearchPath + (!IsHigh ? "." : "\u0007") + Ordinal.ToString();
}
}
return _SearchPath;
}
}
public string ShortSearchPath
{