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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user