cleanup Page.cs

This commit is contained in:
adelikat 2020-02-25 13:15:52 -06:00
parent 72d4b0ac46
commit 35697aaefa
1 changed files with 17 additions and 30 deletions

View File

@ -1,37 +1,24 @@
//public domain assumed from cyotek.com using System.IO;
using System.IO;
// public domain assumed from cyotek.com
namespace Cyotek.Drawing.BitmapFont namespace Cyotek.Drawing.BitmapFont
{ {
public struct Page public struct Page
{ {
#region  Public Constructors public Page(int id, string fileName)
: this()
{
FileName = fileName;
Id = id;
}
public Page(int id, string fileName) public override string ToString()
: this() {
{ return $"{Id} ({Path.GetFileName(FileName)})";
this.FileName = fileName; }
this.Id = id;
}
#endregion  Public Constructors public string FileName { get; set; }
#region  Public Methods public int Id { get; set; }
}
public override string ToString()
{
return string.Format("{0} ({1})", this.Id, Path.GetFileName(this.FileName));
}
#endregion  Public Methods
#region  Public Properties
public string FileName { get; set; }
public int Id { get; set; }
#endregion  Public Properties
}
} }