You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
153 lines
12 KiB
153 lines
12 KiB
<Window x:Class="SunlightCentralizedControlManagement_SCCM_.WindowsView.ViewStep"
|
|
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:SunlightCentralizedControlManagement_SCCM_.WindowsView"
|
|
xmlns:lang="clr-namespace:SunlightCentralizedControlManagement_SCCM_.Properties"
|
|
mc:Ignorable="d"
|
|
WindowStartupLocation="CenterScreen"
|
|
ResizeMode="NoResize"
|
|
WindowStyle="None"
|
|
Title="SUNLIGHT 800" Height="800" Width="600">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="300"/>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="50"/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="1" BorderThickness="5,5,5,5" BorderBrush="#FFABABAB"/>
|
|
<Grid Grid.Row="0">
|
|
<TextBlock Text="{x:Static lang:Resources.Code}" HorizontalAlignment="Left" Height="30"
|
|
Margin="210,20,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150"
|
|
FontSize="20" Background="#FFEFEEEE"/>
|
|
<TextBlock Text="{x:Static lang:Resources.Function}" HorizontalAlignment="Left" Height="30"
|
|
Margin="210,60,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150"
|
|
FontSize="20" Background="#FFEFEEEE"/>
|
|
<ComboBox x:Name="boxID" HorizontalAlignment="Right" Height="30" Margin="0,60,10,0"
|
|
VerticalAlignment="Top" Width="230" FontSize="20" SelectionChanged="BoxID_SelectionChanged"/>
|
|
<TextBox x:Name="boxNAME" HorizontalAlignment="Right" Height="30" Margin="0,20,10,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
|
TextChanged="TextBox_TextChanged" PreviewTextInput="Tb_KeyPress"
|
|
InputMethod.IsInputMethodEnabled="False" FontSize="20" HorizontalContentAlignment="Right" MaxLength="3"/>
|
|
<Image x:Name="imageP" HorizontalAlignment="Left" Height="200" Margin="10,20,0,0" VerticalAlignment="Top" Width="200">
|
|
<Image.OpacityMask>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="Black"/>
|
|
<GradientStop Color="White" Offset="1"/>
|
|
</LinearGradientBrush>
|
|
</Image.OpacityMask>
|
|
</Image>
|
|
<TextBlock x:Name="P1N" HorizontalAlignment="Left" Height="30" Margin="210,120,0,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
|
Background="#FFEFEEEE" Visibility="Hidden"/>
|
|
<TextBox x:Name="P1" HorizontalAlignment="Right" Height="30" Margin="0,120,10,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
|
Text="0" PreviewTextInput="Tb_KeyP1" InputMethod.IsInputMethodEnabled="False"
|
|
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" TextChanged="P1_TextChanged"/>
|
|
<TextBlock x:Name="P2N" HorizontalAlignment="Left" Height="30" Margin="210,155,0,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
|
Background="#FFEFEEEE" Visibility="Hidden"/>
|
|
<TextBox x:Name="P2" HorizontalAlignment="Right" Height="30" Margin="0,155,10,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
|
Text="0" PreviewTextInput="Tb_KeyP2" InputMethod.IsInputMethodEnabled="False"
|
|
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" TextChanged="P2_TextChanged"/>
|
|
<TextBlock x:Name="P3N" HorizontalAlignment="Left" Height="30" Margin="210,190,0,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
|
Background="#FFEFEEEE" Visibility="Hidden"/>
|
|
<TextBox x:Name="P3" HorizontalAlignment="Right" Height="30" Margin="0,190,10,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
|
Text="0" PreviewTextInput="Tb_KeyP3" InputMethod.IsInputMethodEnabled="False"
|
|
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" TextChanged="P3_TextChanged"/>
|
|
<TextBlock x:Name="P4N" HorizontalAlignment="Left" Height="30" Margin="210,225,0,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
|
Background="#FFEFEEEE" Visibility="Hidden"/>
|
|
<TextBox x:Name="P4" HorizontalAlignment="Right" Height="30" Margin="0,225,10,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
|
Text="0" PreviewTextInput="Tb_KeyP4" InputMethod.IsInputMethodEnabled="False"
|
|
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" TextChanged="P4_TextChanged"/>
|
|
<TextBlock x:Name="P5N" HorizontalAlignment="Left" Height="30" Margin="210,260,0,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
|
Background="#FFEFEEEE" Visibility="Hidden"/>
|
|
<TextBox x:Name="P5" HorizontalAlignment="Right" Height="30" Margin="0,260,10,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
|
Text="0" PreviewTextInput="Tb_KeyP5" InputMethod.IsInputMethodEnabled="False"
|
|
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" TextChanged="P5_TextChanged"/>
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="1">
|
|
<TextBlock x:Name="Sub" Text="{x:Static lang:Resources.Subroutine}" HorizontalAlignment="Left"
|
|
Height="40" Margin="210,20,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="360"
|
|
FontSize="25" Background="#FFEFEEEE"/>
|
|
<Image x:Name="imageP1" Source="/Lmage/ADD.jpg" HorizontalAlignment="Left" Height="125"
|
|
Margin="20,10,0,0" VerticalAlignment="Top" Width="125" Opacity="0.4"
|
|
MouseLeftButtonDown="imageP1_MouseLeftButtonDown" MouseLeftButtonUp="imageP1_MouseLeftButtonUp"/>
|
|
<Image x:Name="imageP2" Source="/Lmage/ADD.jpg" HorizontalAlignment="Left" Height="125"
|
|
Margin="20,145,0,0" VerticalAlignment="Top" Width="125" Opacity="0.4"
|
|
MouseLeftButtonDown="imageP2_MouseLeftButtonDown" MouseLeftButtonUp="imageP2_MouseLeftButtonUp"/>
|
|
<Image x:Name="imageP3" Source="/Lmage/ADD.jpg" HorizontalAlignment="Left" Height="125"
|
|
Margin="20,280,0,0" VerticalAlignment="Top" Width="125" Opacity="0.4"
|
|
MouseLeftButtonDown="imageP3_MouseLeftButtonDown" MouseLeftButtonUp="imageP3_MouseLeftButtonUp"/>
|
|
<TextBlock Text="{x:Static lang:Resources.Code}" HorizontalAlignment="Left" Height="30"
|
|
Margin="210,70,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150"
|
|
FontSize="20" Background="#FFEFEEEE"/>
|
|
<TextBlock Text="{x:Static lang:Resources.Function}" HorizontalAlignment="Left" Height="30"
|
|
Margin="210,110,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150"
|
|
FontSize="20" Background="#FFEFEEEE"/>
|
|
<ComboBox x:Name="boxIDp" HorizontalAlignment="Right" Height="30" Margin="0,110,10,0"
|
|
VerticalAlignment="Top" Width="230" FontSize="20" SelectionChanged="boxIDp_SelectionChanged"/>
|
|
<TextBox x:Name="boxNAMEp" HorizontalAlignment="Right" Height="30" Margin="0,70,10,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
|
|
IsReadOnly="True" FontSize="20" HorizontalContentAlignment="Right" MaxLength="3"
|
|
TextChanged="TextBoxp_TextChanged" />
|
|
<TextBlock x:Name="P1NP" HorizontalAlignment="Left" Height="30" Margin="210,170,0,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
|
Background="#FFEFEEEE" Visibility="Hidden"/>
|
|
<TextBox x:Name="P1P" HorizontalAlignment="Right" Height="30" Margin="0,170,10,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1"
|
|
ClipToBounds="True" Text="0" PreviewTextInput="Tb_KeyP1p"
|
|
TextChanged="P1P_TextChanged" InputMethod.IsInputMethodEnabled="False"
|
|
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" />
|
|
<TextBlock x:Name="P2NP" HorizontalAlignment="Left" Height="30" Margin="210,205,0,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
|
Background="#FFEFEEEE" Visibility="Hidden"/>
|
|
<TextBox x:Name="P2P" HorizontalAlignment="Right" Height="30" Margin="0,205,10,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1"
|
|
ClipToBounds="True" Text="0" PreviewTextInput="Tb_KeyP2p"
|
|
TextChanged="P2P_TextChanged" InputMethod.IsInputMethodEnabled="False"
|
|
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" />
|
|
<TextBlock x:Name="P3NP" HorizontalAlignment="Left" Height="30" Margin="210,240,0,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
|
Background="#FFEFEEEE" Visibility="Hidden"/>
|
|
<TextBox x:Name="P3P" HorizontalAlignment="Right" Height="30" Margin="0,240,10,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1"
|
|
ClipToBounds="True" Text="0" PreviewTextInput="Tb_KeyP3p"
|
|
TextChanged="P3P_TextChanged" InputMethod.IsInputMethodEnabled="False"
|
|
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" />
|
|
<TextBlock x:Name="P4NP" HorizontalAlignment="Left" Height="30" Margin="210,275,0,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
|
Background="#FFEFEEEE" Visibility="Hidden"/>
|
|
<TextBox x:Name="P4P" HorizontalAlignment="Right" Height="30" Margin="0,275,10,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1"
|
|
ClipToBounds="True" Text="0" PreviewTextInput="Tb_KeyP4p"
|
|
TextChanged="P4P_TextChanged" InputMethod.IsInputMethodEnabled="False"
|
|
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" />
|
|
<TextBlock x:Name="P5NP" HorizontalAlignment="Left" Height="30" Margin="210,310,0,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20"
|
|
Background="#FFEFEEEE" Visibility="Hidden"/>
|
|
<TextBox x:Name="P5P" HorizontalAlignment="Right" Height="30" Margin="0,310,10,0"
|
|
TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1"
|
|
ClipToBounds="True" Text="0" PreviewTextInput="Tb_KeyP5p"
|
|
TextChanged="P5P_TextChanged" InputMethod.IsInputMethodEnabled="False"
|
|
FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" />
|
|
</Grid>
|
|
|
|
<Button Grid.Row="2" x:Name="yes" Content="{x:Static lang:Resources.YES}"
|
|
HorizontalAlignment="Right" Height="35" Margin="0,0,200,5"
|
|
VerticalAlignment="Bottom" Width="80" Click="YES_Click"/>
|
|
<Button Grid.Row="2" x:Name="no" Content="{x:Static lang:Resources.NO}"
|
|
HorizontalAlignment="Right" Height="35" Margin="0,0,50,5"
|
|
VerticalAlignment="Bottom" Width="80" Click="NO_Click"/>
|
|
|
|
</Grid>
|
|
</Window>
|
|
|