cleanup Page.cs
This commit is contained in:
parent
72d4b0ac46
commit
35697aaefa
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue