Update size of fields.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -85,7 +85,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<PartitionType, int>(r => r.Sequence).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<PartitionType, uint>(r => r.Sequence).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Sequence"
|
||||
});
|
||||
@@ -93,7 +93,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<PartitionType, int>(r => r.StartSector).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<PartitionType, ulong>(r => r.StartSector).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Start"
|
||||
});
|
||||
@@ -101,7 +101,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<PartitionType, int>(r => r.EndSector).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<PartitionType, ulong>(r => r.EndSector).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "End"
|
||||
});
|
||||
@@ -229,7 +229,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -247,7 +247,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -265,7 +265,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -283,7 +283,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -301,7 +301,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -319,7 +319,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -337,7 +337,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -355,7 +355,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -373,7 +373,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -391,7 +391,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -405,7 +405,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<EVPDType, int>(r => r.page).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<EVPDType, byte>(r => r.page).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Page"
|
||||
});
|
||||
@@ -418,7 +418,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<EVPDType, long>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<EVPDType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -439,7 +439,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -457,7 +457,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -476,7 +476,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<LinearMediaType, long>(r => r.Image.offset).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<LinearMediaType, ulong>(r => r.Image.offset).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Offset"
|
||||
});
|
||||
@@ -484,7 +484,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<LinearMediaType, long>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<LinearMediaType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -506,7 +506,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<BlockTrackType, long>(r => r.Image.offset).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<BlockTrackType, ulong>(r => r.Image.offset).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Offset"
|
||||
});
|
||||
@@ -514,7 +514,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<BlockTrackType, long>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<BlockTrackType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -527,7 +527,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<BlockTrackType, long>(r => r.Head).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<BlockTrackType, ushort>(r => r.Head).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Head"
|
||||
});
|
||||
@@ -535,7 +535,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<BlockTrackType, long>(r => r.Cylinder).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<BlockTrackType, uint>(r => r.Cylinder).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Cylinder"
|
||||
});
|
||||
@@ -543,7 +543,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<BlockTrackType, long>(r => r.StartSector).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<BlockTrackType, ulong>(r => r.StartSector).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Start"
|
||||
});
|
||||
@@ -551,7 +551,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<BlockTrackType, long>(r => r.EndSector).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<BlockTrackType, ulong>(r => r.EndSector).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "End"
|
||||
});
|
||||
@@ -559,7 +559,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<BlockTrackType, long>(r => r.Sectors).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<BlockTrackType, ulong>(r => r.Sectors).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Sectors"
|
||||
});
|
||||
@@ -567,7 +567,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<BlockTrackType, int>(r => r.BytesPerSector).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<BlockTrackType, uint>(r => r.BytesPerSector).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Bytes per sector"
|
||||
});
|
||||
@@ -989,9 +989,9 @@ namespace CICMMetadataEditor
|
||||
|
||||
partitionIter = new PartitionType
|
||||
{
|
||||
Sequence = (int)spPartitionSequence.Value,
|
||||
StartSector = int.Parse(txtPartitionStart.Text),
|
||||
EndSector = int.Parse(txtPartitionEnd.Text),
|
||||
Sequence = (uint)spPartitionSequence.Value,
|
||||
StartSector = ulong.Parse(txtPartitionStart.Text),
|
||||
EndSector = ulong.Parse(txtPartitionEnd.Text),
|
||||
Type = txtPartitionType.Text,
|
||||
Name = txtPartitionName.Text,
|
||||
Description = txtPartitionDescription.Text
|
||||
@@ -1463,10 +1463,10 @@ namespace CICMMetadataEditor
|
||||
if(!string.IsNullOrWhiteSpace(txtOffset.Text) && long.TryParse(txtOffset.Text, out ltmp))
|
||||
{
|
||||
Metadata.Image.offsetSpecified = true;
|
||||
Metadata.Image.offset = long.Parse(txtOffset.Text);
|
||||
Metadata.Image.offset = ulong.Parse(txtOffset.Text);
|
||||
}
|
||||
|
||||
Metadata.Size = long.Parse(txtSize.Text);
|
||||
Metadata.Size = ulong.Parse(txtSize.Text);
|
||||
Metadata.Checksums = checksums;
|
||||
Metadata.ContentChecksums = contentChks;
|
||||
|
||||
@@ -1475,19 +1475,19 @@ namespace CICMMetadataEditor
|
||||
Metadata.Sequence = new SequenceType
|
||||
{
|
||||
MediaTitle = txtMediaTitle.Text,
|
||||
MediaSequence = (int)spSequence.Value,
|
||||
TotalMedia = (int)spTotalMedia.Value
|
||||
MediaSequence = (uint)spSequence.Value,
|
||||
TotalMedia = (uint)spTotalMedia.Value
|
||||
};
|
||||
if(spSide.Value > 0)
|
||||
{
|
||||
Metadata.Sequence.SideSpecified = true;
|
||||
Metadata.Sequence.Side = (int)spSide.Value;
|
||||
Metadata.Sequence.Side = (byte)spSide.Value;
|
||||
}
|
||||
|
||||
if(spLayer.Value > 0)
|
||||
{
|
||||
Metadata.Sequence.LayerSpecified = true;
|
||||
Metadata.Sequence.Layer = (int)spLayer.Value;
|
||||
Metadata.Sequence.Layer = (byte)spLayer.Value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1497,9 +1497,9 @@ namespace CICMMetadataEditor
|
||||
if(!string.IsNullOrWhiteSpace(txtFirmware.Text)) Metadata.Firmware = txtFirmware.Text;
|
||||
if(!string.IsNullOrWhiteSpace(txtInterface.Text)) Metadata.Interface = txtInterface.Text;
|
||||
|
||||
Metadata.PhysicalBlockSize = (int)spPhysicalBlockSize.Value;
|
||||
Metadata.LogicalBlockSize = (int)spLogicalBlockSize.Value;
|
||||
Metadata.LogicalBlocks = long.Parse(txtBlocks.Text);
|
||||
Metadata.PhysicalBlockSize = (uint)spPhysicalBlockSize.Value;
|
||||
Metadata.LogicalBlockSize = (uint)spLogicalBlockSize.Value;
|
||||
Metadata.LogicalBlocks = ulong.Parse(txtBlocks.Text);
|
||||
Metadata.VariableBlockSize = variableBlockSize;
|
||||
Metadata.TapeInformation = tapeInformation;
|
||||
Metadata.Scans = scans;
|
||||
@@ -1588,9 +1588,9 @@ namespace CICMMetadataEditor
|
||||
Metadata.HeadsSpecified = true;
|
||||
Metadata.CylindersSpecified = true;
|
||||
Metadata.SectorsPerTrackSpecified = true;
|
||||
Metadata.Heads = (long)spHeads.Value;
|
||||
Metadata.Cylinders = (long)spCylinders.Value;
|
||||
Metadata.SectorsPerTrack = (long)spSectors.Value;
|
||||
Metadata.Heads = (ushort)spHeads.Value;
|
||||
Metadata.Cylinders = (uint)spCylinders.Value;
|
||||
Metadata.SectorsPerTrack = (ulong)spSectors.Value;
|
||||
}
|
||||
|
||||
if(lstTracks.Count > 0) Metadata.Track = lstTracks.ToArray();
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
<?xml version="1.0" encoding="UTF-8"?><!--
|
||||
//
|
||||
// Author:
|
||||
// Natalia Portillo claunia@claunia.com
|
||||
@@ -31,105 +30,108 @@
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
-->
|
||||
<Form xmlns="http://schema.picoe.ca/eto.forms" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="533" Width="909" Resizable="True" Title="Editing metadata...">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" Expand="True">
|
||||
<TabControl>
|
||||
<TabPage Text="General" ID="tabGeneral">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Developer</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtDeveloper" />
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Publisher</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtPublisher" />
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Author</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtAuthor" />
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Performer</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtPerformer" />
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Name</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtName" />
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Version</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtVersion" />
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal" ID="stkReleaseType">
|
||||
<CheckBox ID="chkKnownReleaseType" ThreeState="False" CheckedChanged="OnChkKnownReleaseTypeToggled">Known release type?</CheckBox>
|
||||
<!-- EnumDropDown<ReleaseType> goes here -->
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Release date</Label>
|
||||
<DateTimePicker ID="cldReleaseDate" Enabled="False" />
|
||||
<CheckBox ID="chkReleaseDate" ThreeState="False" CheckedChanged="OnChkReleaseDateToggled" Checked="True">Unknown or unreleased</CheckBox>
|
||||
</StackLayout>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Part number</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtPartNumber" />
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Serial number</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtSerialNumber" />
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<Form xmlns="http://schema.picoe.ca/eto.forms" Height="533" Width="909" Resizable="True" Title="Editing metadata...">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" Expand="True">
|
||||
<TabControl>
|
||||
<TabPage Text="General" ID="tabGeneral">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Developer</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtDeveloper"/>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Publisher</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtPublisher"/>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Author</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtAuthor"/>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Performer</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtPerformer"/>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Name</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtName"/>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Version</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtVersion"/>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal" ID="stkReleaseType">
|
||||
<CheckBox ID="chkKnownReleaseType" ThreeState="False"
|
||||
CheckedChanged="OnChkKnownReleaseTypeToggled">Known release type?
|
||||
</CheckBox>
|
||||
<!-- EnumDropDown<ReleaseType> goes here -->
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Release date</Label>
|
||||
<DateTimePicker ID="cldReleaseDate" Enabled="False"/>
|
||||
<CheckBox ID="chkReleaseDate" ThreeState="False" CheckedChanged="OnChkReleaseDateToggled"
|
||||
Checked="True">Unknown or unreleased
|
||||
</CheckBox>
|
||||
</StackLayout>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Part number</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtPartNumber"/>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Serial number</Label>
|
||||
<StackLayoutItem Expand="True">
|
||||
<TextBox ID="txtSerialNumber"/>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<TabPage Text="Required operating systems" ID="tabTargetOs">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>New operating system:</Label>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch">
|
||||
<TextBox ID="txtNewOsName" />
|
||||
<TextBox ID="txtNewOsName"/>
|
||||
</StackLayoutItem>
|
||||
<Label>version:</Label>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch">
|
||||
<TextBox ID="txtNewOsVersion" />
|
||||
<TextBox ID="txtNewOsVersion"/>
|
||||
</StackLayoutItem>
|
||||
<Button ID="btnAddNewOs" Click="OnBtnAddNewOsClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||
<GridView ID="treeOses">
|
||||
</GridView>
|
||||
<GridView ID="treeOses"></GridView>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnClearOses" Click="OnBtnClearOsesClicked">Clear</Button>
|
||||
@@ -137,232 +139,234 @@
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<TabPage Text="Keywords" ID="tabKeywords">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>New keyword:</Label>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch">
|
||||
<TextBox ID="txtNewKeyword" />
|
||||
</StackLayoutItem>
|
||||
<Button ID="btnAddKeyword" Click="OnBtnAddKeywordClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<GridView ID="treeKeywords" />
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnClearKeywords" Click="OnBtnClearKeywordsClicked">Clear</Button>
|
||||
<Button ID="btnRemoveKeyword" Click="OnBtnRemoveKeywordClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<TabPage Text="Barcodes" ID="tabBarcodes">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>New barcode:</Label>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch">
|
||||
<TextBox ID="txtNewBarcode" />
|
||||
</StackLayoutItem>
|
||||
<Label>type</Label>
|
||||
<ComboBox ID="cmbBarcodes" ReadOnly="True" />
|
||||
<Button ID="btnAddBarcode" Click="OnBtnAddBarcodeClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<GridView ID="treeBarcodes" />
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnClearBarcodes" Click="OnBtnClearBarcodesClicked">Clear</Button>
|
||||
<Button ID="btnRemoveBarcode" Click="OnBtnRemoveBarcodeClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<TabPage Text="Categories" ID="tabCategories">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Center">
|
||||
<Label>Categories</Label>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>New category:</Label>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch">
|
||||
<TextBox ID="txtNewCategory" />
|
||||
</StackLayoutItem>
|
||||
<Button ID="btnAddCategory" Click="OnBtnAddCategoryClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||
<GridView ID="treeCategories" />
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnClearCategories" Click="OnBtnClearCategoriesClicked">Clear</Button>
|
||||
<Button ID="btnRemoveCategory" Click="OnBtnRemoveCategoryClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Center">
|
||||
<Label>Subcategories</Label>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>New subcategory:</Label>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch">
|
||||
<TextBox ID="txtNewSubcategory" />
|
||||
</StackLayoutItem>
|
||||
<Button ID="btnAddSubcategory" Click="OnBtnAddSubcategoryClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||
<GridView ID="treeSubcategories" />
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnClearSubcategories" Click="OnBtnClearSubcategoriesClicked">Clear</Button>
|
||||
<Button ID="btnRemoveSubcategory" Click="OnBtnRemoveSubcategoryClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<TabPage Text="Languages" ID="tabLanguages">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>New language:</Label>
|
||||
<ComboBox ID="cmbLanguages" ReadOnly="True" />
|
||||
<Button ID="btnAddLanguage" Click="OnBtnAddLanguageClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||
<GridView ID="treeLanguages">
|
||||
</GridView>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnClearLanguages" Click="OnBtnClearLanguagesClicked">Clear</Button>
|
||||
<Button ID="btnRemoveLanguage" Click="OnBtnRemoveLanguageClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<TabPage Text="Architectures" ID="tabArchitectures">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>New architecture:</Label>
|
||||
<ComboBox ID="cmbArchitectures" ReadOnly="True" />
|
||||
<Button ID="btnAddArchitecture" Click="OnBtnAddArchitectureClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||
<GridView ID="treeArchitectures">
|
||||
</GridView>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnClearArchitectures" Click="OnBtnClearArchitecturesClicked">Clear</Button>
|
||||
<Button ID="btnRemoveArchitecture" Click="OnBtnRemoveArchitectureClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<TabPage Text="Optical discs" ID="tabDiscs">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Choose disc to add:</Label>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch">
|
||||
<ComboBox ID="cmbFilesForNewDisc" ReadOnly="True" />
|
||||
</StackLayoutItem>
|
||||
<Button ID="btnAddDisc" Click="OnBtnAddDiscClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||
<GridView ID="treeDiscs">
|
||||
</GridView>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnStopAddDisc" Click="OnBtnStopAddDiscClicked" Visible="False">Stop</Button>
|
||||
<Button ID="btnEditDisc" Click="OnBtnEditDiscClicked">Edit</Button>
|
||||
<Button ID="btnClearDiscs" Click="OnBtnClearDiscsClicked">Clear</Button>
|
||||
<Button ID="btnRemoveDisc" Click="OnBtnRemoveDiscClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
<TabPage Text="Keywords" ID="tabKeywords">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>New keyword:</Label>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch">
|
||||
<TextBox ID="txtNewKeyword"/>
|
||||
</StackLayoutItem>
|
||||
<Button ID="btnAddKeyword" Click="OnBtnAddKeywordClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<GridView ID="treeKeywords"/>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnClearKeywords" Click="OnBtnClearKeywordsClicked">Clear</Button>
|
||||
<Button ID="btnRemoveKeyword" Click="OnBtnRemoveKeywordClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<TabPage Text="Barcodes" ID="tabBarcodes">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>New barcode:</Label>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch">
|
||||
<TextBox ID="txtNewBarcode"/>
|
||||
</StackLayoutItem>
|
||||
<Label>type</Label>
|
||||
<ComboBox ID="cmbBarcodes" ReadOnly="True"/>
|
||||
<Button ID="btnAddBarcode" Click="OnBtnAddBarcodeClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<GridView ID="treeBarcodes"/>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnClearBarcodes" Click="OnBtnClearBarcodesClicked">Clear</Button>
|
||||
<Button ID="btnRemoveBarcode" Click="OnBtnRemoveBarcodeClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<TabPage Text="Categories" ID="tabCategories">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Center">
|
||||
<Label>Categories</Label>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>New category:</Label>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch">
|
||||
<TextBox ID="txtNewCategory"/>
|
||||
</StackLayoutItem>
|
||||
<Button ID="btnAddCategory" Click="OnBtnAddCategoryClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||
Expand="True">
|
||||
<GridView ID="treeCategories"/>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnClearCategories" Click="OnBtnClearCategoriesClicked">Clear</Button>
|
||||
<Button ID="btnRemoveCategory" Click="OnBtnRemoveCategoryClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Center">
|
||||
<Label>Subcategories</Label>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>New subcategory:</Label>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch">
|
||||
<TextBox ID="txtNewSubcategory"/>
|
||||
</StackLayoutItem>
|
||||
<Button ID="btnAddSubcategory" Click="OnBtnAddSubcategoryClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||
Expand="True">
|
||||
<GridView ID="treeSubcategories"/>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnClearSubcategories" Click="OnBtnClearSubcategoriesClicked">Clear
|
||||
</Button>
|
||||
<Button ID="btnRemoveSubcategory" Click="OnBtnRemoveSubcategoryClicked">Remove
|
||||
</Button>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<TabPage Text="Languages" ID="tabLanguages">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>New language:</Label>
|
||||
<ComboBox ID="cmbLanguages" ReadOnly="True"/>
|
||||
<Button ID="btnAddLanguage" Click="OnBtnAddLanguageClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||
<GridView ID="treeLanguages"></GridView>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnClearLanguages" Click="OnBtnClearLanguagesClicked">Clear</Button>
|
||||
<Button ID="btnRemoveLanguage" Click="OnBtnRemoveLanguageClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<TabPage Text="Architectures" ID="tabArchitectures">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>New architecture:</Label>
|
||||
<ComboBox ID="cmbArchitectures" ReadOnly="True"/>
|
||||
<Button ID="btnAddArchitecture" Click="OnBtnAddArchitectureClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||
<GridView ID="treeArchitectures"></GridView>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnClearArchitectures" Click="OnBtnClearArchitecturesClicked">Clear</Button>
|
||||
<Button ID="btnRemoveArchitecture" Click="OnBtnRemoveArchitectureClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<TabPage Text="Optical discs" ID="tabDiscs">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Choose disc to add:</Label>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch">
|
||||
<ComboBox ID="cmbFilesForNewDisc" ReadOnly="True"/>
|
||||
</StackLayoutItem>
|
||||
<Button ID="btnAddDisc" Click="OnBtnAddDiscClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||
<GridView ID="treeDiscs"></GridView>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnStopAddDisc" Click="OnBtnStopAddDiscClicked" Visible="False">Stop</Button>
|
||||
<Button ID="btnEditDisc" Click="OnBtnEditDiscClicked">Edit</Button>
|
||||
<Button ID="btnClearDiscs" Click="OnBtnClearDiscsClicked">Clear</Button>
|
||||
<Button ID="btnRemoveDisc" Click="OnBtnRemoveDiscClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<Label ID="lblAddDisc1" Visible="False">Progress 1</Label>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<ProgressBar ID="prgAddDisc1" Visible="False" />
|
||||
<ProgressBar ID="prgAddDisc1" Visible="False"/>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<Label ID="lblAddDisc2" Visible="False">Progress 2</Label>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<ProgressBar ID="prgAddDisc2" Visible="False" />
|
||||
<ProgressBar ID="prgAddDisc2" Visible="False"/>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<TabPage Text="Block disks" ID="tabDisks">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Choose disc to add:</Label>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch">
|
||||
<ComboBox ID="cmbFilesForNewDisk" ReadOnly="True" />
|
||||
</StackLayoutItem>
|
||||
<Button ID="btnAddDisk" Click="OnBtnAddDiskClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||
<GridView ID="treeDisks">
|
||||
</GridView>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnStopAddDisk" Click="OnBtnStopAddDiskClicked" Visible="False">Stop</Button>
|
||||
<Button ID="btnEditDisk" Click="OnBtnEditDiskClicked">Edit</Button>
|
||||
<Button ID="btnClearDisks" Click="OnBtnClearDisksClicked">Clear</Button>
|
||||
<Button ID="btnRemoveDisk" Click="OnBtnRemoveDiskClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<Label ID="lblAddDisk1" Visible="False">Progress 1</Label>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<ProgressBar ID="prgAddDisk1" Visible="False" />
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<Label ID="lblAddDisk2" Visible="False">Progress 2</Label>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<ProgressBar ID="prgAddDisk2" Visible="False" />
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
</TabControl>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Center">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnCancel" Click="OnBtnCancelClicked">Cancel</Button>
|
||||
<Button ID="btnOK" Click="OnBtnOKClicked">OK</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
<TabPage Text="Block disks" ID="tabDisks">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Choose disc to add:</Label>
|
||||
<StackLayoutItem Expand="True" HorizontalAlignment="Stretch">
|
||||
<ComboBox ID="cmbFilesForNewDisk" ReadOnly="True"/>
|
||||
</StackLayoutItem>
|
||||
<Button ID="btnAddDisk" Click="OnBtnAddDiskClicked">Add</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||
<GridView ID="treeDisks"></GridView>
|
||||
</StackLayoutItem>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnStopAddDisk" Click="OnBtnStopAddDiskClicked" Visible="False">Stop</Button>
|
||||
<Button ID="btnEditDisk" Click="OnBtnEditDiskClicked">Edit</Button>
|
||||
<Button ID="btnClearDisks" Click="OnBtnClearDisksClicked">Clear</Button>
|
||||
<Button ID="btnRemoveDisk" Click="OnBtnRemoveDiskClicked">Remove</Button>
|
||||
</StackLayout>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<Label ID="lblAddDisk1" Visible="False">Progress 1</Label>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<ProgressBar ID="prgAddDisk1" Visible="False"/>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<Label ID="lblAddDisk2" Visible="False">Progress 2</Label>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch">
|
||||
<ProgressBar ID="prgAddDisk2" Visible="False"/>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
</TabControl>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Center">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Button ID="btnCancel" Click="OnBtnCancelClicked">Cancel</Button>
|
||||
<Button ID="btnOK" Click="OnBtnOKClicked">OK</Button>
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
<Form.Menu>
|
||||
<MenuBar>
|
||||
<ButtonMenuItem Text="F&ile">
|
||||
<ButtonMenuItem Text="New" Shortcut="CommonModifier+N" Click="OnNewClicked" />
|
||||
<ButtonMenuItem Text="Open" Shortcut="CommonModifier+O" Click="OnOpenClicked" />
|
||||
<ButtonMenuItem Text="New" Shortcut="CommonModifier+N" Click="OnNewClicked"/>
|
||||
<ButtonMenuItem Text="Open" Shortcut="CommonModifier+O" Click="OnOpenClicked"/>
|
||||
<SeparatorMenuItem/>
|
||||
<ButtonMenuItem Text="Save" Shortcut="CommonModifier+S" Click="OnSaveClicked" />
|
||||
<ButtonMenuItem Text="Save as" Shortcut="{On Control+Shift+S, Mac=AlternateModifier+Application+Shift+S}" Click="OnSaveAsClicked" />
|
||||
<ButtonMenuItem Text="Save" Shortcut="CommonModifier+S" Click="OnSaveClicked"/>
|
||||
<ButtonMenuItem Text="Save as"
|
||||
Shortcut="{On Control+Shift+S, Mac=AlternateModifier+Application+Shift+S}"
|
||||
Click="OnSaveAsClicked"/>
|
||||
</ButtonMenuItem>
|
||||
<MenuBar.ApplicationItems>
|
||||
<ButtonMenuItem Text="Preferences.." Shortcut="{On Control+Shift+Comma, Mac=Application+Comma}" />
|
||||
<ButtonMenuItem Text="Preferences.." Shortcut="{On Control+Shift+Comma, Mac=Application+Comma}"/>
|
||||
</MenuBar.ApplicationItems>
|
||||
<MenuBar.QuitItem>
|
||||
<ButtonMenuItem Text="Quit" Shortcut="CommonModifier+Q" Click="OnQuitClicked" />
|
||||
<ButtonMenuItem Text="Quit" Shortcut="CommonModifier+Q" Click="OnQuitClicked"/>
|
||||
</MenuBar.QuitItem>
|
||||
<MenuBar.AboutItem>
|
||||
<ButtonMenuItem Text="About..." Click="OnAboutClicked" />
|
||||
<ButtonMenuItem Text="About..." Click="OnAboutClicked"/>
|
||||
</MenuBar.AboutItem>
|
||||
</MenuBar>
|
||||
</Form.Menu>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -93,7 +93,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<PartitionType, int>(r => r.Sequence).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<PartitionType, uint>(r => r.Sequence).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Sequence"
|
||||
});
|
||||
@@ -101,7 +101,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<PartitionType, int>(r => r.StartSector).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<PartitionType, ulong>(r => r.StartSector).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Start"
|
||||
});
|
||||
@@ -109,7 +109,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<PartitionType, int>(r => r.EndSector).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<PartitionType, ulong>(r => r.EndSector).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "End"
|
||||
});
|
||||
@@ -235,7 +235,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -253,7 +253,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -271,7 +271,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -289,7 +289,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -307,7 +307,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -325,7 +325,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -343,7 +343,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -361,7 +361,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -379,7 +379,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -397,7 +397,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -415,7 +415,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -433,7 +433,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -451,7 +451,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -469,7 +469,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -487,7 +487,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -505,7 +505,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -523,7 +523,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -541,7 +541,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<DumpType, int>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<DumpType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -554,7 +554,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<LayeredTextType, int>(r => r.layer).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<LayeredTextType, uint>(r => r.layer).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Layer"
|
||||
});
|
||||
@@ -572,7 +572,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<LayeredTextType, int>(r => r.layer).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<LayeredTextType, uint>(r => r.layer).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Layer"
|
||||
});
|
||||
@@ -590,7 +590,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<LayeredTextType, int>(r => r.layer).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<LayeredTextType, uint>(r => r.layer).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Layer"
|
||||
});
|
||||
@@ -608,7 +608,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<LayeredTextType, int>(r => r.layer).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<LayeredTextType, uint>(r => r.layer).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Layer"
|
||||
});
|
||||
@@ -626,7 +626,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<LayeredTextType, int>(r => r.layer).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<LayeredTextType, uint>(r => r.layer).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Layer"
|
||||
});
|
||||
@@ -650,7 +650,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<SectorsType, int>(r => r.layer).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<SectorsType, uint>(r => r.layer).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Layer"
|
||||
});
|
||||
@@ -658,7 +658,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<SectorsType, long>(r => r.Value).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<SectorsType, ulong>(r => r.Value).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Start"
|
||||
});
|
||||
@@ -679,7 +679,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<BorderType, long>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<BorderType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -687,7 +687,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<BorderType, int>(r => r.session).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<BorderType, uint>(r => r.session).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Session"
|
||||
});
|
||||
@@ -705,7 +705,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<BorderType, long>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<BorderType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -713,7 +713,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<BorderType, int>(r => r.session).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<BorderType, uint>(r => r.session).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Session"
|
||||
});
|
||||
@@ -727,7 +727,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<TrackType, int>(r => r.Sequence.TrackNumber).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<TrackType, uint>(r => r.Sequence.TrackNumber).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Track"
|
||||
});
|
||||
@@ -735,7 +735,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<TrackType, int>(r => r.Sequence.Session).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<TrackType, uint>(r => r.Sequence.Session).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Session"
|
||||
});
|
||||
@@ -748,7 +748,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<TrackType, long>(r => r.Size).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<TrackType, ulong>(r => r.Size).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Size"
|
||||
});
|
||||
@@ -761,7 +761,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<TrackType, long>(r => r.Image.offset).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<TrackType, ulong>(r => r.Image.offset).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Offset"
|
||||
});
|
||||
@@ -779,7 +779,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<TrackType, long>(r => r.StartSector).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<TrackType, ulong>(r => r.StartSector).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "LBA Start"
|
||||
});
|
||||
@@ -787,7 +787,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<TrackType, long>(r => r.EndSector).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<TrackType, ulong>(r => r.EndSector).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "LBA End"
|
||||
});
|
||||
@@ -804,7 +804,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
DataCell = new TextBoxCell
|
||||
{
|
||||
Binding = Binding.Property<TrackType, int>(r => r.BytesPerSector).Convert(v => v.ToString())
|
||||
Binding = Binding.Property<TrackType, uint>(r => r.BytesPerSector).Convert(v => v.ToString())
|
||||
},
|
||||
HeaderText = "Bytes per sector"
|
||||
});
|
||||
@@ -1149,9 +1149,9 @@ namespace CICMMetadataEditor
|
||||
|
||||
lstLayers.Add(new SectorsType
|
||||
{
|
||||
layer = (int)spNewLayer.Value,
|
||||
layer = (byte)spNewLayer.Value,
|
||||
layerSpecified = true,
|
||||
Value = long.Parse(txtLayerSize.Text)
|
||||
Value = ulong.Parse(txtLayerSize.Text)
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1217,9 +1217,9 @@ namespace CICMMetadataEditor
|
||||
if(editingPartition) ((ObservableCollection<PartitionType>)treePartitions.DataStore).Remove(partitionIter);
|
||||
partitionIter = new PartitionType
|
||||
{
|
||||
Sequence = (int)spPartitionSequence.Value,
|
||||
StartSector = int.Parse(txtPartitionStart.Text),
|
||||
EndSector = int.Parse(txtPartitionEnd.Text),
|
||||
Sequence = (uint)spPartitionSequence.Value,
|
||||
StartSector = ulong.Parse(txtPartitionStart.Text),
|
||||
EndSector = ulong.Parse(txtPartitionEnd.Text),
|
||||
Type = txtPartitionType.Text,
|
||||
Name = txtPartitionName.Text,
|
||||
Description = txtPartitionDescription.Text
|
||||
@@ -1309,9 +1309,9 @@ namespace CICMMetadataEditor
|
||||
protected void OnBtnApplyTrackClicked(object sender, EventArgs e)
|
||||
{
|
||||
string file = trackIter.Image.Value;
|
||||
long filesize = trackIter.Size;
|
||||
ulong filesize = trackIter.Size;
|
||||
string fileformat = trackIter.Image.format;
|
||||
long fileoffset = trackIter.Image.offset;
|
||||
ulong fileoffset = trackIter.Image.offset;
|
||||
ChecksumType[] checksums = trackIter.Checksums;
|
||||
SubChannelType subchannel = trackIter.SubChannel;
|
||||
TrackTypeTrackType trackType =
|
||||
@@ -1322,21 +1322,21 @@ namespace CICMMetadataEditor
|
||||
trackIter = new TrackType
|
||||
{
|
||||
AccoustID = txtAcoustID.Text,
|
||||
BytesPerSector = int.Parse(txtBytesPerSector.Text),
|
||||
BytesPerSector = uint.Parse(txtBytesPerSector.Text),
|
||||
Checksums = checksums,
|
||||
EndMSF = txtMSFEnd.Text,
|
||||
EndSector = long.Parse(txtTrackEnd.Text),
|
||||
EndSector = ulong.Parse(txtTrackEnd.Text),
|
||||
Image =
|
||||
new ImageType {format = fileformat, offset = fileoffset, offsetSpecified = true, Value = file},
|
||||
Sequence =
|
||||
new TrackSequenceType
|
||||
{
|
||||
Session = int.Parse(txtSessionSequence.Text),
|
||||
TrackNumber = int.Parse(txtTrackSequence.Text)
|
||||
Session = uint.Parse(txtSessionSequence.Text),
|
||||
TrackNumber = uint.Parse(txtTrackSequence.Text)
|
||||
},
|
||||
Size = filesize,
|
||||
StartMSF = txtMSFStart.Text,
|
||||
StartSector = long.Parse(txtTrackStart.Text),
|
||||
StartSector = ulong.Parse(txtTrackStart.Text),
|
||||
SubChannel = subchannel,
|
||||
TrackType1 = trackType
|
||||
};
|
||||
@@ -1511,7 +1511,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
lstRingCodes.Add(new LayeredTextType
|
||||
{
|
||||
layer = (int)spRingCodeLayer.Value,
|
||||
layer = (uint)spRingCodeLayer.Value,
|
||||
layerSpecified = true,
|
||||
Value = txtRingCode.Text
|
||||
});
|
||||
@@ -1526,7 +1526,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
lstMasteringSIDs.Add(new LayeredTextType
|
||||
{
|
||||
layer = (int)spMasteringSIDLayer.Value,
|
||||
layer = (uint)spMasteringSIDLayer.Value,
|
||||
layerSpecified = true,
|
||||
Value = txtMasteringSID.Text
|
||||
});
|
||||
@@ -1542,7 +1542,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
lstToolstamps.Add(new LayeredTextType
|
||||
{
|
||||
layer = (int)spToolstampLayer.Value,
|
||||
layer = (uint)spToolstampLayer.Value,
|
||||
layerSpecified = true,
|
||||
Value = txtToolstamp.Text
|
||||
});
|
||||
@@ -1557,7 +1557,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
lstMouldSIDs.Add(new LayeredTextType
|
||||
{
|
||||
layer = (int)spMouldSIDLayer.Value,
|
||||
layer = (uint)spMouldSIDLayer.Value,
|
||||
layerSpecified = true,
|
||||
Value = txtMouldSID.Text
|
||||
});
|
||||
@@ -1572,7 +1572,7 @@ namespace CICMMetadataEditor
|
||||
{
|
||||
lstMouldTexts.Add(new LayeredTextType
|
||||
{
|
||||
layer = (int)spMouldTextLayer.Value,
|
||||
layer = (uint)spMouldTextLayer.Value,
|
||||
layerSpecified = true,
|
||||
Value = txtMouldText.Text
|
||||
});
|
||||
@@ -1688,29 +1688,29 @@ namespace CICMMetadataEditor
|
||||
if(!string.IsNullOrWhiteSpace(txtOffset.Text) && long.TryParse(txtOffset.Text, out ltmp))
|
||||
{
|
||||
Metadata.Image.offsetSpecified = true;
|
||||
Metadata.Image.offset = long.Parse(txtOffset.Text);
|
||||
Metadata.Image.offset = ulong.Parse(txtOffset.Text);
|
||||
}
|
||||
|
||||
Metadata.Size = long.Parse(txtSize.Text);
|
||||
Metadata.Size = ulong.Parse(txtSize.Text);
|
||||
|
||||
if(chkSequence.Checked.Value)
|
||||
{
|
||||
Metadata.Sequence = new SequenceType
|
||||
{
|
||||
MediaTitle = txtDiscTitle.Text,
|
||||
MediaSequence = (int)spSequence.Value,
|
||||
TotalMedia = (int)spTotalMedia.Value
|
||||
MediaSequence = (uint)spSequence.Value,
|
||||
TotalMedia = (uint)spTotalMedia.Value
|
||||
};
|
||||
if(spSide.Value > 0)
|
||||
{
|
||||
Metadata.Sequence.SideSpecified = true;
|
||||
Metadata.Sequence.Side = (int)spSide.Value;
|
||||
Metadata.Sequence.Side = (byte)spSide.Value;
|
||||
}
|
||||
|
||||
if(spLayer.Value > 0)
|
||||
{
|
||||
Metadata.Sequence.LayerSpecified = true;
|
||||
Metadata.Sequence.Layer = (int)spLayer.Value;
|
||||
Metadata.Sequence.Layer = (byte)spLayer.Value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1744,11 +1744,11 @@ namespace CICMMetadataEditor
|
||||
}
|
||||
|
||||
Metadata.Tracks = !string.IsNullOrWhiteSpace(txtMediaTracks.Text)
|
||||
? new[] {int.Parse(txtMediaTracks.Text)}
|
||||
: new[] {1};
|
||||
? new[] {uint.Parse(txtMediaTracks.Text)}
|
||||
: new[] {(uint)1};
|
||||
|
||||
Metadata.Sessions =
|
||||
!string.IsNullOrWhiteSpace(txtMediaSessions.Text) ? int.Parse(txtMediaSessions.Text) : 1;
|
||||
!string.IsNullOrWhiteSpace(txtMediaSessions.Text) ? uint.Parse(txtMediaSessions.Text) : 1;
|
||||
|
||||
if(!string.IsNullOrWhiteSpace(txtCopyProtection.Text)) Metadata.CopyProtection = txtCopyProtection.Text;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user