Add project files.
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO.Ports;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Channels;
|
||||
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;
|
||||
using System.Xml.Serialization;
|
||||
using System.Windows.Threading;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace SafeBagDE70
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
//public class CountSession
|
||||
//{
|
||||
// public int[] QuantityDenomi { get; set; }
|
||||
// public int[] SumDenomi { get; set; }
|
||||
|
||||
//}
|
||||
public partial class MainWindow : HandyControl.Controls.Window
|
||||
{
|
||||
private WelcomeUC _welcomeUC;
|
||||
private DepositUC _depositUC;
|
||||
private CollectionUC _collectionUC;
|
||||
private InformationUC _informationUC;
|
||||
private ErrorUC _errorUC;
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
AppData.Init();
|
||||
ShowWelcomeScreen();
|
||||
}
|
||||
public void ShowInformationScreen(string strInfor)
|
||||
{
|
||||
if (_informationUC == null) _informationUC = new InformationUC();
|
||||
_informationUC.ShowInfor(strInfor);
|
||||
MainContentControl.Content = _informationUC;
|
||||
}
|
||||
public void ShowErrorScreen(string strError)
|
||||
{
|
||||
if (_errorUC == null) _errorUC = new ErrorUC();
|
||||
_errorUC.ShowInfor(strError);
|
||||
MainContentControl.Content = _errorUC;
|
||||
}
|
||||
public void ShowWelcomeScreen()
|
||||
{
|
||||
if(_welcomeUC==null) _welcomeUC = new WelcomeUC();
|
||||
MainContentControl.Content = _welcomeUC;
|
||||
}
|
||||
public void ShowDepositScreen()
|
||||
{
|
||||
if (_depositUC == null) _depositUC = new DepositUC();
|
||||
MainContentControl.Content = _depositUC;
|
||||
}
|
||||
public void ShowCollectionScreen()
|
||||
{
|
||||
if (_collectionUC == null) _collectionUC = new CollectionUC();
|
||||
MainContentControl.Content = _collectionUC;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user