This commit is contained in:
@@ -71,7 +71,7 @@ namespace Volian.Controls.Library
|
||||
int typ = (int)myDisplayItem.MyItemInfo.MyContent.Type;
|
||||
if (typ >= 20000)
|
||||
{
|
||||
if (myDisplayItem.RNOLevel > 0 && IsRNO(myDisplayItem.MyItemInfo)) return "";
|
||||
if (myDisplayItem.RNOLevel > 0 && myDisplayItem.MyItemInfo.IsRNO) return "";
|
||||
// Step 1: Get TabFormat from Format
|
||||
format = _TabFormats[typ % 10000];
|
||||
if (format == "<seq>")
|
||||
@@ -82,45 +82,5 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
return format;
|
||||
}
|
||||
public static string TabFormat(ItemInfo item, int seqLevel)
|
||||
{
|
||||
string format = string.Empty;
|
||||
if (item != null)
|
||||
{
|
||||
if (IsRNO(item)) return "";
|
||||
if ((item.MyContent.Type / 10000) == 2)
|
||||
{
|
||||
// Step 1: Get TabFormat from Format
|
||||
format = _TabFormats[((int)item.MyContent.Type) % 10000];
|
||||
if (format == "<seq>")
|
||||
{
|
||||
format = SeqTabFormat[seqLevel];
|
||||
}
|
||||
}
|
||||
}
|
||||
return format;
|
||||
}
|
||||
// TODO: Move these to ItemExt.cs as properties
|
||||
public static bool IsHigh(ItemInfo item)
|
||||
{
|
||||
// check to see if ActiveParent is a section
|
||||
if(item.MyContent.Type / 10000 != 2)return false;
|
||||
ItemInfo parent = (ItemInfo)item.ActiveParent;
|
||||
if ((parent.MyContent.Type / 10000) == 1)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
public static bool IsSequential(ItemInfo item)
|
||||
{
|
||||
//if (IsHigh(item)) return true;
|
||||
if (((item.MyContent.Type / 10000) == 2) && ((((int)item.MyContent.Type) % 10000) == 0)) return true;
|
||||
return false;
|
||||
}
|
||||
public static bool IsRNO(ItemInfo item)
|
||||
{
|
||||
if(item != null)
|
||||
return ((item.ItemPartCount > 0) && (item.ItemParts[0].PartType == E_FromType.RNO));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user