Created a properties form, testing dynamic UI building for the relevant MKV attributes.

This commit is contained in:
2017-09-07 14:25:33 -05:00
parent ae5a8284b6
commit 51ab989cb8
8 changed files with 531 additions and 43 deletions
+3 -8
View File
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
@@ -81,7 +80,7 @@ namespace MKVTest
stack.Push(tag);
lastDepthLevel = depth;
}
//File.WriteAllLines(@"C:\Users\glmcc\Desktop\Test.info", xml);
return xml;
}
@@ -93,7 +92,7 @@ namespace MKVTest
var insideBraces = false;
var name = new StringBuilder();
var value = new StringBuilder();
var attributes = new List<MkvAttribute>();
//var attributes = new List<MkvAttribute>();
for (var i = 0; i < text.Length; i++)
{
@@ -139,10 +138,6 @@ namespace MKVTest
if(!insideBraces) name.Append(text[i]);
}
}
//if (text.Contains("Segment, "))
//{
// name.Clear();
//}
tag.Name = FormatTagName(name.ToString());
tag.Value = value.ToString().Trim();
tag.Depth = tagDepth;