private void LoadHistory() { var from = dtpFrom.Value.Date; var to = dtpTo.Value.Date.AddDays(1); var data = Model.Singleton.Instance.TransactionModel.GetTransactions(from, to, _loadedItem.Id); var list = new Utils.MySortableBindingList <TransactionViewModel>(data); dvLogs.DataSource = list; }
private void LoadLogs() { if (currentUSer == null) { return; } var from = dtpFrom.Value.Date; var to = dtpTo.Value.Date.AddDays(1); var data = Model.Singleton.Instance.TransactionModel.GetTransactions(from, to, 0, currentUSer.Id); var list = new Utils.MySortableBindingList <TransactionViewModel>(data); dvLogs.DataSource = list; }