blob: 2e34379e52bd8f04ef76581d33dc90d14f99bb39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
<UserControl x:Class="Tango.MachineStudio.DB.Views.DBViews.ConfigurationView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:controls="clr-namespace:Tango.MachineStudio.DB.Controls"
xmlns:local="clr-namespace:Tango.MachineStudio.DB.Views.DBViews"
xmlns:vm="clr-namespace:Tango.MachineStudio.DB.ViewModels"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300" d:DataContext="{d:DesignInstance Type=vm:ConfigurationsViewVM, IsDesignTimeCreatable=False}">
<UserControl.Resources>
<DataTemplate x:Key="comTemplate">
<TextBlock><Run Text="{Binding Name}"></Run><Run>,</Run> <Run Text="{Binding Version}"></Run></TextBlock>
</DataTemplate>
</UserControl.Resources>
<Grid>
<controls:TableGrid>
<TextBlock Text="ID:" FontWeight="Bold"></TextBlock>
<TextBox Text="{Binding EditEntity.ID}" IsReadOnly="True"></TextBox>
<TextBlock Text="GUID:" FontWeight="Bold"></TextBlock>
<TextBox Text="{Binding EditEntity.Guid}" IsReadOnly="True"></TextBox>
<TextBlock Text="Last Updated:" FontWeight="Bold"></TextBlock>
<TextBox Text="{Binding EditEntity.LastUpdated}" IsReadOnly="True"></TextBox>
<TextBlock Text="Name:" FontWeight="Bold"></TextBlock>
<TextBox Text="{Binding EditEntity.Name,Mode=TwoWay}"></TextBox>
<TextBlock Text="Creation Date:" FontWeight="Bold"></TextBlock>
<TextBox Text="{Binding EditEntity.CreationDate,Mode=TwoWay}" IsReadOnly="True"></TextBox>
<TextBlock Text="Application Version:" FontWeight="Bold"></TextBlock>
<ComboBox ItemsSource="{Binding Adapter.ApplicationVersions}" SelectedItem="{Binding EditEntity.ApplicationVersion,Mode=TwoWay}" ItemTemplate="{StaticResource comTemplate}"></ComboBox>
<TextBlock Text="Application Firmware Version:" FontWeight="Bold"></TextBlock>
<ComboBox ItemsSource="{Binding Adapter.ApplicationFirmwareVersions}" SelectedItem="{Binding EditEntity.ApplicationFirmwareVersion,Mode=TwoWay}" ItemTemplate="{StaticResource comTemplate}"></ComboBox>
<TextBlock Text="Application OS Version:" FontWeight="Bold"></TextBlock>
<ComboBox ItemsSource="{Binding Adapter.ApplicationOsVersions}" SelectedItem="{Binding EditEntity.ApplicationOsVersion,Mode=TwoWay}" ItemTemplate="{StaticResource comTemplate}"></ComboBox>
<TextBlock Text="Display Panel Version:" FontWeight="Bold"></TextBlock>
<ComboBox ItemsSource="{Binding Adapter.ApplicationDisplayPanelVersions}" SelectedItem="{Binding EditEntity.ApplicationDisplayPanelVersion,Mode=TwoWay}" ItemTemplate="{StaticResource comTemplate}"></ComboBox>
<TextBlock Text="Embedded Firmware Version:" FontWeight="Bold"></TextBlock>
<ComboBox ItemsSource="{Binding Adapter.EmbeddedFirmwareVersions}" SelectedItem="{Binding EditEntity.EmbeddedFirmwareVersion,Mode=TwoWay}" ItemTemplate="{StaticResource comTemplate}"></ComboBox>
<TextBlock Text="Embedded Software Version:" FontWeight="Bold"></TextBlock>
<ComboBox ItemsSource="{Binding Adapter.EmbeddedSoftwareVersions}" SelectedItem="{Binding EditEntity.EmbeddedSoftwareVersion,Mode=TwoWay}" ItemTemplate="{StaticResource comTemplate}"></ComboBox>
<TextBlock Text="Hardware Version:" FontWeight="Bold"></TextBlock>
<ComboBox ItemsSource="{Binding Adapter.HardwareVersions}" SelectedItem="{Binding EditEntity.HardwareVersion,Mode=TwoWay}" ItemTemplate="{StaticResource comTemplate}"></ComboBox>
</controls:TableGrid>
</Grid>
</UserControl>
|