Add project files.

This commit is contained in:
Admin
2024-09-02 10:03:23 +07:00
parent 42def0d4aa
commit 6219298497
361 changed files with 58423 additions and 0 deletions
@@ -0,0 +1,98 @@
#pragma checksum "..\..\..\DefaultKeyboardHost.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8509DC7DAD84ED248634BE5108571E782945BD81"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Controls.Ribbon;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
using VirtualKeyboard.Wpf;
namespace VirtualKeyboard.Wpf {
internal partial class DefaultKeyboardHost : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 19 "..\..\..\DefaultKeyboardHost.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ContentControl KeyboardValueContent;
#line default
#line hidden
#line 22 "..\..\..\DefaultKeyboardHost.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ContentControl KeyboardContent;
#line default
#line hidden
private bool _contentLoaded;
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.7.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/VirtualKeyboard;component/defaultkeyboardhost.xaml", System.UriKind.Relative);
#line 1 "..\..\..\DefaultKeyboardHost.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.7.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this.KeyboardValueContent = ((System.Windows.Controls.ContentControl)(target));
return;
case 2:
this.KeyboardContent = ((System.Windows.Controls.ContentControl)(target));
return;
}
this._contentLoaded = true;
}
}
}
@@ -0,0 +1,211 @@
<UserControl x:Class="SafeBagDE70.DepositSMUCv2"
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:SafeBagDE70"
mc:Ignorable="d"
Width="1280"
Height="1024"
Background="#F0F0F0"
Loaded="UserControl_Loaded"
Unloaded="UserControl_Unloaded">
<UserControl.Resources>
<local:LastItemIndexConverter x:Key="LastItemIndexConverter" />
<DataTemplate x:Key="BoldTemplateWithSeparator">
<Grid>
<Grid.RowDefinitions>
<!-- Separator Row -->
<RowDefinition Height="2"/>
<!-- Data Row -->
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Separator Line -->
<Rectangle Grid.Row="0" Height="2" Fill="Gray" HorizontalAlignment="Stretch"/>
<!-- Data Content for Last Row -->
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"/>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="100"/>
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding Name}" FontWeight="Bold" Grid.Column="0" />
<TextBlock Text="{Binding Quantity}" FontWeight="Bold" Grid.Column="1" />
<TextBlock Text="{Binding Value}" FontWeight="Bold" Grid.Column="2" />
</Grid>
</Grid>
</DataTemplate>
</UserControl.Resources>
<Border BorderThickness="1" BorderBrush="Gray" Margin="10">
<Grid x:Name="gridMainPanel">
<!--<ContentControl x:Name="MainContent" />-->
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition Height="*"/>
<RowDefinition Height="40"/>
</Grid.RowDefinitions>
<Border BorderThickness="0" Background="#003366">
<StackPanel Grid.Row="0" >
<Label
x:Name="lblName"
Background="Transparent"
Foreground="White"
BorderThickness="0"
FontWeight="Bold"
FontSize="30"
Height="50"/>
<Label HorizontalAlignment="Center"
x:Name="lblUser"
Background="Transparent"
Foreground="White"
BorderThickness="0"
FontSize="20"
FontWeight="Bold"
Height="50"/>
<Border BorderThickness="1" BorderBrush="Gray">
<Separator BorderThickness="2" BorderBrush="Gray"/>
</Border>
</StackPanel>
</Border>
<Grid Grid.Row="1" x:Name="gridMain" VerticalAlignment="Center" Margin="5" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="300"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="300"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<Button HorizontalAlignment="Stretch"
Content="BẮT ĐẦU"
x:Name="btnStart"
Click="btnCommon_Click"
FontSize="30"
FontWeight="Bold"
Height="80"
Margin="10,0,10,10"
Background="#4CAF50" Foreground="White"/>
<Button HorizontalAlignment="Stretch"
Content="NỘP TIỀN"
x:Name="btnCountStart"
Click="btnCommon_Click"
FontSize="30"
FontWeight="Bold"
Height="80"
Margin="10"
Background="#2196F3" Foreground="White"/>
<Button HorizontalAlignment="Stretch"
Content="KIỂM TRA"
x:Name="btnCheck"
Click="btnCommon_Click"
FontSize="30"
FontWeight="Bold"
Height="80"
Margin="10"
Background="#2196F3" Foreground="White"
/>
</StackPanel>
<StackPanel Grid.Column="2">
<Button HorizontalAlignment="Stretch"
Content="LƯU TRỮ"
x:Name="btnStoreStart"
Click="btnCommon_Click"
FontSize="30"
FontWeight="Bold"
Height="80"
Margin="10,0,10,10"
Background="#4CAF50" Foreground="White"/>
<Button HorizontalAlignment="Stretch"
Content="KẾT THÚC"
FontWeight="Bold"
x:Name="btnEnd"
Click="btnCommon_Click"
FontSize="30"
Height="80"
Margin="10"
Background="#4CAF50" Foreground="White"/>
<Button HorizontalAlignment="Stretch"
Content="THOÁT"
FontWeight="Bold"
x:Name="btnLogout"
Click="btnCommon_Click"
FontSize="30"
Height="80"
Margin="10"
Background="Red" Foreground="White"/>
</StackPanel>
<Grid Grid.Column="1">
<ListView HorizontalAlignment="Center" FontSize="30" Width="600" x:Name="lvCount"
ScrollViewer.VerticalScrollBarVisibility="Visible"
ScrollViewer.CanContentScroll="False"
Background="Transparent">
<ListView.Resources>
<!-- Style for GridViewColumnHeader to set font to bold -->
<Style TargetType="GridViewColumnHeader">
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Right"/>
</Style>
</ListView.Resources>
<ListView.View>
<GridView>
<GridViewColumn Header="Mệnh giá"
DisplayMemberBinding="{Binding Name}"
Width="200"/>
<GridViewColumn Header="Số lượng"
DisplayMemberBinding="{Binding Quantity}"
Width="150"/>
<GridViewColumn Header="Thành tiền"
DisplayMemberBinding="{Binding Value}"
Width="200"/>
</GridView>
</ListView.View>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Right"/>
<Setter Property="BorderThickness" Value="0,0,0,1"/>
<Style.Triggers>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<!-- Condition 1: Check if AlternationIndex equals Item Count - 1 -->
<Condition Value="True">
<Condition.Binding>
<MultiBinding Converter="{StaticResource LastItemIndexConverter}">
<Binding Path="Name"/>
</MultiBinding>
</Condition.Binding>
</Condition>
</MultiDataTrigger.Conditions>
<Setter Property="FontWeight" Value="Bold" />
</MultiDataTrigger>
</Style.Triggers>
</Style>
</ListView.ItemContainerStyle>
</ListView>
</Grid>
</Grid>
<StackPanel Grid.Row="2" Background="#003366">
<Separator BorderThickness="2" BorderBrush="Gray"/>
<Label Height="40" x:Name="lblStatus" Background="Transparent" BorderThickness="0" Foreground="Red" FontSize="20" Content="TRẠNG THÁI"/>
</StackPanel>
</Grid>
</Border>
</UserControl>