コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }