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(); } }
public Login(LotteryTicketChecker checker) { this.checker = checker; this.InitializeComponent(); }