123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <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="0.5*"/>
- <RowDefinition Height="3*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="3,3,3,3" IsEnabled="{Binding IsNotConnected}" Background="#FFCECECE">
- <Label Content="IP:" Height="30" Margin="20,0,0,0"/>
- <TextBox Text="{Binding IpAddress}" Width="150" Height="30"/>
- <Label Content="Port:" Height="30" Margin="20,0,0,0"/>
- <TextBox Text="{Binding Port}" Width="150" Height="30"/>
- <Label Content="HubName:" Height="30" Margin="20,0,0,0"/>
- <TextBox Text="{Binding HubName}" Width="150" Height="30"/>
- <Button Content="Connect" Command="{Binding ConnectCommand}" Margin="40,0,0,0" Height="30" Width="60"/>
- </StackPanel>
- <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>
- <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="3,3,3,3" Background="#FFCECECE">
-
- </StackPanel>
- </Grid>
- </Window>
|