Added generic function InList for debugging
This commit is contained in:
parent
099a428888
commit
e595471442
@ -328,6 +328,12 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
public string MyContentMessage = string.Empty;
|
public string MyContentMessage = string.Empty;
|
||||||
public string MyGridMessage = 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)
|
public void FixTransitionText(TransitionInfo tran, TransitionLookup tranLookup)
|
||||||
{
|
{
|
||||||
//string transText = tran.ResolvePathTo();
|
//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);
|
// _Text = Text.Substring(0, g.Index) + transText + Text.Substring(g.Index + g.Length);
|
||||||
//}
|
//}
|
||||||
string newvalue;
|
string newvalue;
|
||||||
|
//if (InList(78185)) Console.WriteLine("Here");
|
||||||
MyContentMessage = string.Empty;
|
MyContentMessage = string.Empty;
|
||||||
if (tranLookup == null)
|
if (tranLookup == null)
|
||||||
newvalue = tran.ResolvePathTo();
|
newvalue = tran.ResolvePathTo();
|
||||||
|
@ -324,6 +324,12 @@ namespace VEPROMS.CSLA.Library
|
|||||||
#region ItemInfo
|
#region ItemInfo
|
||||||
public partial class ItemInfo:IVEDrillDownReadOnly
|
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)
|
public void SetHeader(VE_Font myFont, string myText)
|
||||||
{
|
{
|
||||||
_MyHeader = new MetaTag(myFont);
|
_MyHeader = new MetaTag(myFont);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user