本文整理汇总了C#中Service.LayKetQuaNgay方法的典型用法代码示例。如果您正苦于以下问题:C# Service.LayKetQuaNgay方法的具体用法?C# Service.LayKetQuaNgay怎么用?C# Service.LayKetQuaNgay使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Service
的用法示例。
在下文中一共展示了Service.LayKetQuaNgay方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Form2_Load
private void Form2_Load(object sender, EventArgs e)
{
Service service = new Service();
DateTime dt = DateTime.Parse("2015-11-1");
List<SPKetQuaNgay> list = service.LayKetQuaNgay(dt);
dataGridView1.DataSource = list;
}
示例2: button_GetData_Click
private void button_GetData_Click(object sender, EventArgs e) // DUA VAO TIMER2
{
string NSXstring = TB_NSX.Text;
try {
DateTime NSX = DateTime.Parse(NSXstring);
try {
results = new Results(NSX);
var list = results.KQN;
}
catch {
MessageBox.Show("Loi Ket Noi CSDL");
return;
}
updateData();
//selected item
CB_SP1.Enter += cbb_enter;
CB_SP2.Enter += cbb_enter;
CB_SP3.Enter += cbb_enter;
CB_SP4.Enter += cbb_enter;
CB_SP5.Enter += cbb_enter;
CB_SP6.Enter += cbb_enter;
CB_SP7.Enter += cbb_enter;
//hien thi datagridview
Service s = new Service();
var list2 = s.LayKetQuaNgay(NSX);
dataGridView1.DataSource = new BindingSource(list2, "");
}
catch {
MessageBox.Show("Nhập Ngày Hợp Lệ");
return;
}
}
示例3: updateList
public List<SPKetQuaNgay> updateList(DateTime NSX)
{
Service service = new Service();
List<SPKetQuaNgay> list = service.LayKetQuaNgay(NSX);
list.Insert(0, new SPKetQuaNgay() { TenSanPham = "---Select---" });
if (list == null) throw new ArgumentNullException();
KQN = list;
return list;
}