public void showData() { var customers = RetailUserBLL.Search(pageIndex, pageSize, sortBy, sortOrder, keyword); dgCustomers.ItemsSource = customers.Items; pageCount = customers.PageCount; }
private void btnLogin_Click(object sender, RoutedEventArgs e) { lblErrors.Content = ""; if (string.IsNullOrEmpty(txtEmailAddress.Text)) { lblErrors.Content = "Invalid Login"; return; } ; if (string.IsNullOrEmpty(txtPassword.Text)) { lblErrors.Content = "Invalid Login"; return; } ; var op = RetailUserBLL.Login(txtEmailAddress.Text, txtPassword.Text); if (op.Code == "200") { MainWindow main = new MainWindow(); main.Show(); this.Close(); } else { lblErrors.Content = "Invalid Login"; } }
private void showData() { var retailusers = RetailUserBLL.Search(pageIndex, pageSize, retailuserorderBy, sortOrder); dgRetailUser.ItemsSource = retailusers.Items; pageCount = retailusers.PageCount; }