using Rs.MotionPlat.Entitys; 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 Rs.MotionPlat { public partial class LocationData : BaseFormHeader { public LocationData() { InitializeComponent(); } void BindData() { List results = OneGrabSixteenManager.Instance.GetResults().ToList(); dataGridView1.DataSource = results; timer1.Enabled = true; } private void LocationData_Load(object sender, EventArgs e) { BindData(); } private void btnLoadData_Click(object sender, EventArgs e) { BindData(); } private void timer1_Tick(object sender, EventArgs e) { BindData(); } } }