Convert Video mostly over to properties

This commit is contained in:
Matt Nadareski
2026-04-03 12:31:24 -04:00
parent 4fecf8b498
commit 2ed0c1f732
31 changed files with 217 additions and 179 deletions

View File

@@ -809,16 +809,16 @@ namespace SabreTools.Serialization.Readers
video.Orientation = kvp.Value;
break;
case "x":
video.X = kvp.Value;
video.X = NumberHelper.ConvertToInt64(kvp.Value);
break;
case "y":
video.Y = kvp.Value;
video.Y = NumberHelper.ConvertToInt64(kvp.Value);
break;
case "aspectx":
video.AspectX = kvp.Value;
video.AspectX = NumberHelper.ConvertToInt64(kvp.Value);
break;
case "aspecty":
video.AspectY = kvp.Value;
video.AspectY = NumberHelper.ConvertToInt64(kvp.Value);
break;
case "freq":
video.Freq = NumberHelper.ConvertToDouble(kvp.Value);

View File

@@ -1177,10 +1177,10 @@ namespace SabreTools.Serialization.Readers
obj.Screen = reader.GetAttribute("screen").AsDisplayType();
obj.Orientation = reader.GetAttribute("orientation");
obj.Width = reader.GetAttribute("width");
obj.Height = reader.GetAttribute("height");
obj.AspectX = reader.GetAttribute("aspectx");
obj.AspectY = reader.GetAttribute("aspecty");
obj.Width = NumberHelper.ConvertToInt64(reader.GetAttribute("width"));
obj.Height = NumberHelper.ConvertToInt64(reader.GetAttribute("height"));
obj.AspectX = NumberHelper.ConvertToInt64(reader.GetAttribute("aspectx"));
obj.AspectY = NumberHelper.ConvertToInt64(reader.GetAttribute("aspecty"));
obj.Refresh = NumberHelper.ConvertToDouble(reader.GetAttribute("refresh"));
return obj;

View File

@@ -1175,10 +1175,10 @@ namespace SabreTools.Serialization.Readers
obj.Screen = reader.GetAttribute("screen").AsDisplayType();
obj.Orientation = reader.GetAttribute("orientation");
obj.Width = reader.GetAttribute("width");
obj.Height = reader.GetAttribute("height");
obj.AspectX = reader.GetAttribute("aspectx");
obj.AspectY = reader.GetAttribute("aspecty");
obj.Width = NumberHelper.ConvertToInt64(reader.GetAttribute("width"));
obj.Height = NumberHelper.ConvertToInt64(reader.GetAttribute("height"));
obj.AspectX = NumberHelper.ConvertToInt64(reader.GetAttribute("aspectx"));
obj.AspectY = NumberHelper.ConvertToInt64(reader.GetAttribute("aspecty"));
obj.Refresh = NumberHelper.ConvertToDouble(reader.GetAttribute("refresh"));
return obj;

View File

@@ -1175,10 +1175,10 @@ namespace SabreTools.Serialization.Readers
obj.Screen = reader.GetAttribute("screen").AsDisplayType();
obj.Orientation = reader.GetAttribute("orientation");
obj.Width = reader.GetAttribute("width");
obj.Height = reader.GetAttribute("height");
obj.AspectX = reader.GetAttribute("aspectx");
obj.AspectY = reader.GetAttribute("aspecty");
obj.Width = NumberHelper.ConvertToInt64(reader.GetAttribute("width"));
obj.Height = NumberHelper.ConvertToInt64(reader.GetAttribute("height"));
obj.AspectX = NumberHelper.ConvertToInt64(reader.GetAttribute("aspectx"));
obj.AspectY = NumberHelper.ConvertToInt64(reader.GetAttribute("aspecty"));
obj.Refresh = NumberHelper.ConvertToDouble(reader.GetAttribute("refresh"));
return obj;