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,16 @@
<UserControl x:Class="SafeBagDE70.Admin.LogViewerUC"
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:local="clr-namespace:SafeBagDE70.Admin"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<StackPanel>
<TextBlock Text="Realtime Logs" FontSize="20" Margin="10"/>
<ListView x:Name="LogListView" Height="500" Margin="10"/>
<Button Content="Log Information" Width="200" Margin="10" Click="LogInfoButton_Click"/>
</StackPanel>
</Grid>
</UserControl>
@@ -0,0 +1,48 @@
using DE70_CMDv2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace SafeBagDE70
{
/// <summary>
/// Interaction logic for CollectionUC.xaml
/// </summary>
public partial class EndSessionUC : UserControl
{
public EndSessionUC()
{
InitializeComponent();
}
public void ShowInfor(string strInfor)
{
lblInfor.Text = strInfor;
}
private void btnEnd_Click(object sender, RoutedEventArgs e)
{
AppData.WDTCount = 0;
//var state= ((MainWindow)Application.Current.MainWindow).GetDepositScreen().GetPrevioustState();
// ((MainWindow)Application.Current.MainWindow).GetDepositScreen().TransitionToState(state);
((MainWindow)Application.Current.MainWindow).ResetTimers();
((MainWindow)Application.Current.MainWindow).BackScreen();
}
private void btnCancel_Click(object sender, RoutedEventArgs e)
{
if (AppData.cCmdRsp != null)
AppData.cCmdRsp.SendXXCmd((byte)Command.CMD_DE_CANCEL);
}
}
}