aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews/MachineView.xaml
blob: ab880a8a86afcf8bcab344385f2e4040648edb78 (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
<UserControl x:Class="Tango.MachineStudio.DB.Views.DBViews.MachineView"
             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"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <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="Serial Number:" FontWeight="Bold"></TextBlock>
            <TextBox Text="{Binding EditEntity.SerialNumber,Mode=TwoWay}"></TextBox>
            <TextBlock Text="Name:" FontWeight="Bold"></TextBlock>
            <TextBox Text="{Binding EditEntity.Name,Mode=TwoWay}"></TextBox>
            <TextBlock Text="Organization:" FontWeight="Bold"></TextBlock>
            <ComboBox ItemsSource="{Binding Adapter.Organizations}" SelectedItem="{Binding EditEntity.Organization,Mode=TwoWay}" DisplayMemberPath="Name"></ComboBox>
            <TextBlock Text="Version:" FontWeight="Bold"></TextBlock>
            <ComboBox ItemsSource="{Binding Adapter.MachineVersions}" SelectedItem="{Binding EditEntity.MachineVersion,Mode=TwoWay}" DisplayMemberPath="Version"></ComboBox>
            <TextBlock Text="Configuration:" FontWeight="Bold"></TextBlock>
            <ComboBox ItemsSource="{Binding Adapter.Configurations}" SelectedItem="{Binding EditEntity.Configuration,Mode=TwoWay}" DisplayMemberPath="Name"></ComboBox>
        </controls:TableGrid>
    </Grid>
</UserControl>