mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Keep getters and setters consistent for machine information
This commit is contained in:
@@ -178,8 +178,24 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string Publisher
|
public string Publisher
|
||||||
{
|
{
|
||||||
get { return _machine.Publisher; }
|
get
|
||||||
set { _machine.Publisher = value; }
|
{
|
||||||
|
if (_machine == null)
|
||||||
|
{
|
||||||
|
_machine = new Machine();
|
||||||
|
}
|
||||||
|
|
||||||
|
return _machine.Publisher;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (_machine == null)
|
||||||
|
{
|
||||||
|
_machine = new Machine();
|
||||||
|
}
|
||||||
|
|
||||||
|
_machine.Publisher = value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -263,8 +279,24 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// <remarks>yes = true, partial = null, no = false</remarks>
|
/// <remarks>yes = true, partial = null, no = false</remarks>
|
||||||
public bool? Supported
|
public bool? Supported
|
||||||
{
|
{
|
||||||
get { return _machine.Supported; }
|
get
|
||||||
set { _machine.Supported = value; }
|
{
|
||||||
|
if (_machine == null)
|
||||||
|
{
|
||||||
|
_machine = new Machine();
|
||||||
|
}
|
||||||
|
|
||||||
|
return _machine.Supported;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (_machine == null)
|
||||||
|
{
|
||||||
|
_machine = new Machine();
|
||||||
|
}
|
||||||
|
|
||||||
|
_machine.Supported = value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user