private void KullaniciIslemYukle(bool deleted) { dataKullaniciIslem.Rows.Clear(); var islemList = HelperBorsaKullaniciIslem.getAllRecords(); foreach (var i in islemList) { if (i.isDeleted == deleted) { int satir = dataKullaniciIslem.Rows.Add(); dataKullaniciIslem.Rows[satir].Cells[0].Value = i.KullaniciIslemID; dataKullaniciIslem.Rows[satir].Cells[1].Value = i.KullaniciID; dataKullaniciIslem.Rows[satir].Cells[2].Value = i.Borsa.Adi; dataKullaniciIslem.Rows[satir].Cells[3].Value = i.Miktar; dataKullaniciIslem.Rows[satir].Cells[4].Value = i.Tarih; } } }
private void TarihliIslemler(DateTime bas, DateTime son) { dataKullaniciIslem.Rows.Clear(); var islemList = HelperBorsaKullaniciIslem.getAllRecords(); foreach (var i in islemList) { if (i.isDeleted == false) { if (i.Tarih >= bas && i.Tarih <= son) { int satir = dataKullaniciIslem.Rows.Add(); dataKullaniciIslem.Rows[satir].Cells[0].Value = i.KullaniciIslemID; dataKullaniciIslem.Rows[satir].Cells[1].Value = i.KullaniciID; dataKullaniciIslem.Rows[satir].Cells[2].Value = i.Borsa.Adi; dataKullaniciIslem.Rows[satir].Cells[3].Value = i.Miktar; dataKullaniciIslem.Rows[satir].Cells[4].Value = i.Tarih; } } } }