private void btnshow_Click(object sender, EventArgs e) { turns = read.getallnobatbasespeanddate(dateTimePicker1.Value); foreach (nobatdehi turn in turns) { iturnlist.Add(turn); } dataGridView1.DataSource = iturnlist; }
private void button5_Click(object sender, EventArgs e) { //todayturn = nobatdehi.getalltoday(datenow.Value); readandwrite read = new readandwrite(); todayturn = read.getallnobatbasespeanddate(datenow.Value); getturn(); }