diff --git a/PesFile/PesFile.cs b/PesFile/PesFile.cs index c4a87f1..408646a 100644 --- a/PesFile/PesFile.cs +++ b/PesFile/PesFile.cs @@ -31,12 +31,6 @@ namespace PesFile { public enum statusEnum { NotOpen, IOError, ParseError, Ready }; - public struct intPair - { - public int a; - public int b; - } - public class PesFile { System.IO.BinaryReader fileIn; @@ -49,7 +43,7 @@ namespace PesFile public List embPunchHeader = new List(); public List sewFigSegHeader = new List(); public List blocks = new List(); - public List colorTable = new List(); + public List> colorTable = new List>(); private statusEnum readyStatus = statusEnum.NotOpen; Int64 startStitches = 0; string lastError = ""; @@ -504,7 +498,7 @@ namespace PesFile outfile.WriteLine("number\ta\tb"); for (int i = 0; i < colorTable.Count; i++) { - outfile.WriteLine((i + 1).ToString() + "\t" + colorTable[i].a.ToString() + ", " + colorTable[i].b.ToString()); + outfile.WriteLine((i + 1).ToString() + "\t" + colorTable[i].Item1.ToString() + ", " + colorTable[i].Item2.ToString()); } if (blocks.Count > 0) {