Files
DE70/.svn/pristine/c9/c97030ab3c15a2bc3eb24fb1c7b391b6a4b56fe8.svn-base
T
2024-09-02 10:03:23 +07:00

49 lines
1.4 KiB
Plaintext

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);
}
}
}