[Items/] Make machine vars more invisible

This commit is contained in:
Matt Nadareski
2017-10-09 13:46:28 -07:00
parent 9200bdb6ea
commit f89026a6d0
6 changed files with 103 additions and 31 deletions

View File

@@ -24,7 +24,7 @@ namespace SabreTools.Library.Items
public override object Clone() public override object Clone()
{ {
Archive item = new Archive() return new Archive()
{ {
Name = this.Name, Name = this.Name,
Type = this.Type, Type = this.Type,
@@ -39,14 +39,26 @@ namespace SabreTools.Library.Items
AreaName = this.AreaName, AreaName = this.AreaName,
AreaSize = this.AreaSize, AreaSize = this.AreaSize,
MachineName = this.MachineName,
Comment = this.Comment,
MachineDescription = this.MachineDescription,
Year = this.Year,
Manufacturer = this.Manufacturer,
RomOf = this.RomOf,
CloneOf = this.CloneOf,
SampleOf = this.SampleOf,
SourceFile = this.SourceFile,
Runnable = this.Runnable,
Board = this.Board,
RebuildTo = this.RebuildTo,
Devices = this.Devices,
MachineType = this.MachineType,
SystemID = this.SystemID, SystemID = this.SystemID,
System = this.System, System = this.System,
SourceID = this.SourceID, SourceID = this.SourceID,
Source = this.Source, Source = this.Source,
}; };
item.CopyMachineInformation(this);
return item;
} }
#endregion #endregion

View File

@@ -46,7 +46,7 @@ namespace SabreTools.Library.Items
public override object Clone() public override object Clone()
{ {
BiosSet item = new BiosSet() return new BiosSet()
{ {
Name = this.Name, Name = this.Name,
Type = this.Type, Type = this.Type,
@@ -61,6 +61,21 @@ namespace SabreTools.Library.Items
AreaName = this.AreaName, AreaName = this.AreaName,
AreaSize = this.AreaSize, AreaSize = this.AreaSize,
MachineName = this.MachineName,
Comment = this.Comment,
MachineDescription = this.MachineDescription,
Year = this.Year,
Manufacturer = this.Manufacturer,
RomOf = this.RomOf,
CloneOf = this.CloneOf,
SampleOf = this.SampleOf,
SourceFile = this.SourceFile,
Runnable = this.Runnable,
Board = this.Board,
RebuildTo = this.RebuildTo,
Devices = this.Devices,
MachineType = this.MachineType,
SystemID = this.SystemID, SystemID = this.SystemID,
System = this.System, System = this.System,
SourceID = this.SourceID, SourceID = this.SourceID,
@@ -69,9 +84,6 @@ namespace SabreTools.Library.Items
Description = this.Description, Description = this.Description,
Default = this.Default, Default = this.Default,
}; };
item.CopyMachineInformation(this);
return item;
} }
#endregion #endregion

View File

@@ -76,7 +76,7 @@ namespace SabreTools.Library.Items
public override object Clone() public override object Clone()
{ {
Disk item = new Disk() return new Disk()
{ {
Name = this.Name, Name = this.Name,
Type = this.Type, Type = this.Type,
@@ -91,6 +91,21 @@ namespace SabreTools.Library.Items
AreaName = this.AreaName, AreaName = this.AreaName,
AreaSize = this.AreaSize, AreaSize = this.AreaSize,
MachineName = this.MachineName,
Comment = this.Comment,
MachineDescription = this.MachineDescription,
Year = this.Year,
Manufacturer = this.Manufacturer,
RomOf = this.RomOf,
CloneOf = this.CloneOf,
SampleOf = this.SampleOf,
SourceFile = this.SourceFile,
Runnable = this.Runnable,
Board = this.Board,
RebuildTo = this.RebuildTo,
Devices = this.Devices,
MachineType = this.MachineType,
SystemID = this.SystemID, SystemID = this.SystemID,
System = this.System, System = this.System,
SourceID = this.SourceID, SourceID = this.SourceID,
@@ -103,9 +118,6 @@ namespace SabreTools.Library.Items
SHA512 = this.SHA512, SHA512 = this.SHA512,
ItemStatus = this.ItemStatus, ItemStatus = this.ItemStatus,
}; };
item.CopyMachineInformation(this);
return item;
} }
#endregion #endregion

View File

@@ -62,7 +62,7 @@ namespace SabreTools.Library.Items
public override object Clone() public override object Clone()
{ {
Release item = new Release() return new Release()
{ {
Name = this.Name, Name = this.Name,
Type = this.Type, Type = this.Type,
@@ -77,6 +77,21 @@ namespace SabreTools.Library.Items
AreaName = this.AreaName, AreaName = this.AreaName,
AreaSize = this.AreaSize, AreaSize = this.AreaSize,
MachineName = this.MachineName,
Comment = this.Comment,
MachineDescription = this.MachineDescription,
Year = this.Year,
Manufacturer = this.Manufacturer,
RomOf = this.RomOf,
CloneOf = this.CloneOf,
SampleOf = this.SampleOf,
SourceFile = this.SourceFile,
Runnable = this.Runnable,
Board = this.Board,
RebuildTo = this.RebuildTo,
Devices = this.Devices,
MachineType = this.MachineType,
SystemID = this.SystemID, SystemID = this.SystemID,
System = this.System, System = this.System,
SourceID = this.SourceID, SourceID = this.SourceID,
@@ -87,9 +102,6 @@ namespace SabreTools.Library.Items
Date = this.Date, Date = this.Date,
Default = this.Default, Default = this.Default,
}; };
item.CopyMachineInformation(this);
return item;
} }
#endregion #endregion

View File

@@ -140,7 +140,7 @@ namespace SabreTools.Library.Items
public override object Clone() public override object Clone()
{ {
Rom item = new Rom() return new Rom()
{ {
Name = this.Name, Name = this.Name,
Type = this.Type, Type = this.Type,
@@ -155,24 +155,36 @@ namespace SabreTools.Library.Items
AreaName = this.AreaName, AreaName = this.AreaName,
AreaSize = this.AreaSize, AreaSize = this.AreaSize,
MachineName = this.MachineName,
Comment = this.Comment,
MachineDescription = this.MachineDescription,
Year = this.Year,
Manufacturer = this.Manufacturer,
RomOf = this.RomOf,
CloneOf = this.CloneOf,
SampleOf = this.SampleOf,
SourceFile = this.SourceFile,
Runnable = this.Runnable,
Board = this.Board,
RebuildTo = this.RebuildTo,
Devices = this.Devices,
MachineType = this.MachineType,
SystemID = this.SystemID, SystemID = this.SystemID,
System = this.System, System = this.System,
SourceID = this.SourceID, SourceID = this.SourceID,
Source = this.Source, Source = this.Source,
MD5 = _md5,
SHA1 = _sha1,
SHA256 = _sha256,
SHA384 = _sha384,
SHA512 = _sha512,
ItemStatus = this.ItemStatus,
Size = this.Size, Size = this.Size,
CRC = _crc, CRC = this.CRC,
MD5 = this.MD5,
SHA1 = this.SHA1,
SHA256 = this.SHA256,
SHA384 = this.SHA384,
SHA512 = this.SHA512,
ItemStatus = this.ItemStatus,
Date = this.Date, Date = this.Date,
}; };
item.CopyMachineInformation(this);
return item;
} }
#endregion #endregion

View File

@@ -24,7 +24,7 @@ namespace SabreTools.Library.Items
public override object Clone() public override object Clone()
{ {
Sample item = new Sample() return new Sample()
{ {
Name = this.Name, Name = this.Name,
Type = this.Type, Type = this.Type,
@@ -39,14 +39,26 @@ namespace SabreTools.Library.Items
AreaName = this.AreaName, AreaName = this.AreaName,
AreaSize = this.AreaSize, AreaSize = this.AreaSize,
MachineName = this.MachineName,
Comment = this.Comment,
MachineDescription = this.MachineDescription,
Year = this.Year,
Manufacturer = this.Manufacturer,
RomOf = this.RomOf,
CloneOf = this.CloneOf,
SampleOf = this.SampleOf,
SourceFile = this.SourceFile,
Runnable = this.Runnable,
Board = this.Board,
RebuildTo = this.RebuildTo,
Devices = this.Devices,
MachineType = this.MachineType,
SystemID = this.SystemID, SystemID = this.SystemID,
System = this.System, System = this.System,
SourceID = this.SourceID, SourceID = this.SourceID,
Source = this.Source, Source = this.Source,
}; };
item.CopyMachineInformation(this);
return item;
} }
#endregion #endregion