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
{
public struct Page
{
#region  Public Constructors
public struct Page
{
public Page(int id, string fileName)
: this()
{
FileName = fileName;
Id = id;
}
public Page(int id, string fileName)
: this()
{
this.FileName = fileName;
this.Id = id;
}
public override string ToString()
{
return $"{Id} ({Path.GetFileName(FileName)})";
}
#endregion  Public Constructors
public string FileName { get; set; }
#region  Public Methods
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
}
public int Id { get; set; }
}
}