Esempio n. 1
0
        public MainWindow()
        {
            this.InitializeComponent();
            this.checker = new LotteryTicketChecker();
            var handler = new BarcodeScannerHandler(this);

            if (string.IsNullOrWhiteSpace(Settings.Default.Username) || string.IsNullOrWhiteSpace(Settings.Default.Password))
            {
                this.dialogHost.DialogContent = new Login(this.checker);
                this.dialogHost.IsOpen        = true;
            }
            else
            {
                this.progress.Visibility = Visibility.Visible;
                this.Login();
            }
        }
Esempio n. 2
0
 public Login(LotteryTicketChecker checker)
 {
     this.checker = checker;
     this.InitializeComponent();
 }