Ejemplo n.º 1
0
 public SearchUser()
 {
     InitializeComponent();
     searchUser = this;
     sqlHandler = new SQLDataHandler();
     RefreshUI();
 }
 public SearchUser()
 {
     InitializeComponent();
     searchUser = this;
     sqlHandler = new SQLDataHandler();
     dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
     dispatcherTimer.Interval = new TimeSpan(0, 0, 15);
     RefreshUI();
 }
Ejemplo n.º 3
0
        public MainWindow()
        {
            InitializeComponent();
            searchPage = new SearchUser();

            /*
             * NavigationWindow navWin = new NavigationWindow();
             * navWin.Content = searchPage;
             * navWin.Show();
             */
        }
        public ScanWindow(SearchUser p)
        {
            InitializeComponent();
            page = p;
            DataRowView selectedRow = page.listView.Items.GetItemAt(page.selectedIndex) as DataRowView;
            string custID = selectedRow["CustomerID"].ToString();
            string test = page.sqlHandler.CheckInUser(custID, "nobadge");

            if (test.ToLower().Contains("success")) {
                page.RefreshUI();
                SearchUser.dispatcherTimer.IsEnabled = true;                
            }

            this.Close();
        }
 public ManualScanWindow(SearchUser p) {
     InitializeComponent();
     page = p;
     txtScanID.Focus();
 }