-
Notifications
You must be signed in to change notification settings - Fork 0
/
ViewFD.cs
32 lines (30 loc) · 876 Bytes
/
ViewFD.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace BankingApplication
{
public partial class ViewFD : Form
{
BindingList<FD> b1;
banking_dbEntities1 dbe;
public ViewFD()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
b1 = new BindingList<FD>();
dbe = new banking_dbEntities1();
string date = dateTimePicker1.Value.ToString("MM/dd/yyyy");
MessageBox.Show("date");
var item = dbe.FDs.Where(a => a.Start_Date.Equals(date));
dataGridView1.DataSource = item.ToList();
}
}
}