| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 | <Window x:Class="EEMSUIClient.Views.MainWindow"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"        xmlns:local="clr-namespace:EEMSUIClient.Views"        xmlns:prism="http://prismlibrary.com/"        prism:ViewModelLocator.AutoWireViewModel="True"        mc:Ignorable="d"        Title="MainWindow" Height="450" Width="800"        WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="SingleBorderWindow">    <Grid Margin="5,5,5,5" >        <Grid.RowDefinitions>            <RowDefinition Height="1*"/>            <RowDefinition Height="3*"/>        </Grid.RowDefinitions>        <Grid Grid.Row="0" IsEnabled="{Binding IsNotConnected}" Background="#FFCECECE">            <Grid.RowDefinitions>                <RowDefinition Height="1*"/>                <RowDefinition Height="1*"/>            </Grid.RowDefinitions>            <Grid.ColumnDefinitions>                <ColumnDefinition Width="1*"/>                <ColumnDefinition Width="1*"/>                <ColumnDefinition Width="1*"/>                <ColumnDefinition Width="1*"/>            </Grid.ColumnDefinitions>            <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Center" VerticalAlignment="Center">                <Label Content="IP:" Height="30"/>                <TextBox Text="{Binding IpAddress}" Width="150" Height="30"/>            </StackPanel>            <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Center" VerticalAlignment="Center">                <Label Content="Port:" Height="30"/>                <TextBox Text="{Binding Port}" Width="150" Height="30"/>            </StackPanel>            <StackPanel Grid.Row="0" Grid.Column="2" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Center" VerticalAlignment="Center">                <Label Content="HubName:" Height="30"/>                <TextBox Text="{Binding HubName}" Width="100" Height="30"/>            </StackPanel>            <StackPanel Grid.Row="0" Grid.Column="3" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Center" VerticalAlignment="Center">                <Button Content="Connect" Command="{Binding ConnectCommand}" Height="30" Width="60"/>            </StackPanel>            <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Right" VerticalAlignment="Center">                <Button Content="Recipe" Command="{Binding SelectRecipeCommand}" Height="30" Width="60"/>            </StackPanel>            <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Left" VerticalAlignment="Center">                <TextBox Text="{Binding SelectedRecipeDict}" IsReadOnly="True" Height="30" Width="160"/>            </StackPanel>            <StackPanel Grid.Row="1" Grid.Column="2" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Right" VerticalAlignment="Center">                <Button Content="Config" Command="{Binding SelectConfigCommand}" Height="30" Width="60"/>            </StackPanel>            <StackPanel Grid.Row="1" Grid.Column="3" Orientation="Horizontal" Margin="3,3,3,3" HorizontalAlignment="Center" VerticalAlignment="Center">                <TextBox Text="{Binding SelectedConfigDict}" IsReadOnly="True" Height="30" Width="160"/>            </StackPanel>        </Grid>        <Grid Grid.Row="1" Margin="3,5,3,5" Background="#FFCECECE">            <Grid.RowDefinitions>                <RowDefinition Height="1*"/>                <RowDefinition Height="1*"/>                <RowDefinition Height="1*"/>                <RowDefinition Height="1*"/>                <RowDefinition Height="1*"/>                <RowDefinition Height="1*"/>                <RowDefinition Height="1*"/>            </Grid.RowDefinitions>            <Grid.ColumnDefinitions>                <ColumnDefinition Width="0.8*"/>                <ColumnDefinition Width="1*"/>                <ColumnDefinition Width="1*"/>            </Grid.ColumnDefinitions>            <Label Grid.Row="0" Grid.Column="0" Content="Device Model:" HorizontalAlignment="Right" Height="30"/>            <ComboBox Grid.Row="0" Grid.Column="1" ItemsSource="{Binding DeviceModels}" SelectedItem="{Binding DeviceModel}" SelectedIndex="{Binding DeviceModelIndex}" Height="30"/>            <Label Grid.Row="1" Grid.Column="0" Content="Device SubModel:" HorizontalAlignment="Right" Height="30"/>            <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding DeviceSubModel}" Height="30"/>            <Label Grid.Row="2" Grid.Column="0" Content="Device Name:" HorizontalAlignment="Right" Height="30"/>            <TextBox Grid.Row="2" Grid.Column="1" Text="{Binding DeviceName}" Height="30"/>            <Label Grid.Row="3" Grid.Column="0" Content="Position:" HorizontalAlignment="Right" Height="30"/>            <TextBox Grid.Row="3" Grid.Column="1" Text="{Binding Position}" Height="30"/>            <Label Grid.Row="4" Grid.Column="0" Content="Software Version:" HorizontalAlignment="Right" Height="30"/>            <TextBox Grid.Row="4" Grid.Column="1" Text="{Binding SoftwareVersion}" Height="30"/>            <Label Grid.Row="5" Grid.Column="0" Content="DB Connection String:" HorizontalAlignment="Right" Height="30"/>            <TextBox Grid.Row="5" Grid.Column="1" Text="{Binding DBConnectionString}" Height="30"/>            <Label Grid.Row="6" Grid.Column="0" Content="Guid:" HorizontalAlignment="Right" Height="30"/>            <TextBox Grid.Row="6" Grid.Column="1" Text="{Binding GuidStr}" Height="30"/>            <Button Grid.Row="6" Grid.Column="2" Content="Register" Command="{Binding RegisterCommand}" Height="30" Width="100"/>        </Grid>    </Grid></Window>
 |