This commit is contained in:
2008-03-10 13:16:58 +00:00
parent 04bece2922
commit 97427f9f05
3 changed files with 40 additions and 19 deletions

View File

@@ -62,20 +62,20 @@ namespace Volian.Controls.Library
"<number>) ",
"<alpha>) "
};
public static string TabFormat(DisplayItem myVlnCSLARTB)
public static string TabFormat(DisplayItem myDisplayItem)
{
string format = string.Empty;
if (myVlnCSLARTB.MyItem != null)
if (myDisplayItem.MyItem != null)
{
int typ = (int)myVlnCSLARTB.MyItem.MyContent.Type;
int typ = (int)myDisplayItem.MyItem.MyContent.Type;
if (typ >= 20000)
{
if (myVlnCSLARTB.RNOLevel > 0 && IsRNO(myVlnCSLARTB.MyItem)) return "";
if (myDisplayItem.RNOLevel > 0 && IsRNO(myDisplayItem.MyItem)) return "";
// Step 1: Get TabFormat from Format
format = _TabFormats[typ % 10000];
if (format == "<seq>")
{
format = SeqTabFormat[myVlnCSLARTB.SeqLevel % SeqTabFormat.Length];
format = SeqTabFormat[myDisplayItem.SeqLevel % SeqTabFormat.Length];
}
}
}