示例#1
0
 private void lastFiveItems_Click(object sender, EventArgs e)
 {
     int uId = new UserService(Server).GetUserByLogin(transactionUser.Text);
     List<UserTransactionDTO> filteredList = new UserTransactionService(Server).GetLastUserTransactions(uId, 5);
     UserTransactions = filteredList;
     userTransactionList.DataSource = UserTransactions;
 }
示例#2
0
 private void sortTransactionsByMaxSum_Click(object sender, EventArgs e)
 {
     int uId = new UserService(Server).GetUserByLogin(transactionUser.Text);
     List<UserTransactionDTO> filteredList = new UserTransactionService(Server).GetUserTransactionsDescByMaxSum(uId);
     UserTransactions = filteredList;
     userTransactionList.DataSource = UserTransactions;
 }
示例#3
0
 void ClearUserTransactionEditForm()
 {
     int uId = new UserService(Server).GetUserByLogin(transactionUser.Text);
     UserTransactions = new UserTransactionService(Server).GetUserTransactions(uId);
     ClearEditForm(userTransactionForm);
     userTransactionList.DataSource = typeof(List<UserTransactionDTO>);
     userTransactionList.DataSource = UserTransactions;
 }