Added generic function InList for debugging

This commit is contained in:
Rich 2014-05-16 18:10:49 +00:00
parent 099a428888
commit e595471442
2 changed files with 13 additions and 0 deletions

View File

@ -328,6 +328,12 @@ namespace VEPROMS.CSLA.Library
{
public string MyContentMessage = string.Empty;
public string MyGridMessage = string.Empty;
public bool InList(params int[] IDs)
{
foreach (int id in IDs)
if (id == ContentID) return true;
return false;
}
public void FixTransitionText(TransitionInfo tran, TransitionLookup tranLookup)
{
//string transText = tran.ResolvePathTo();
@ -341,6 +347,7 @@ namespace VEPROMS.CSLA.Library
// _Text = Text.Substring(0, g.Index) + transText + Text.Substring(g.Index + g.Length);
//}
string newvalue;
//if (InList(78185)) Console.WriteLine("Here");
MyContentMessage = string.Empty;
if (tranLookup == null)
newvalue = tran.ResolvePathTo();

View File

@ -324,6 +324,12 @@ namespace VEPROMS.CSLA.Library
#region ItemInfo
public partial class ItemInfo:IVEDrillDownReadOnly
{
public bool InList(params int [] IDs)
{
foreach (int id in IDs)
if (id == ItemID) return true;
return false;
}
public void SetHeader(VE_Font myFont, string myText)
{
_MyHeader = new MetaTag(myFont);