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 { /// /// Interaction logic for CollectionUC.xaml /// public partial class TimeoutUC : UserControl { public TimeoutUC() { 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).StopTimers(); ((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); } } }