busyIndicator.Show(this, new Point(27, 100)); |
BusyIndicator busyIndicator = new BusyIndicator();
Timer timer = new Timer();
timer.Tick += Timer_Tick;
private void Timer_Tick(object sender, EventArgs e)
{
sfDataGrid1.TableControl.BeginInvoke(new Action(() =>
{
this.sfDataGrid1.DataSource = list;
this.busyIndicator.Hide();
}));
}
private void button1_Click(object sender, EventArgs e)
{
timer.Enabled = true;
timer.Start();
busyIndicator.Show(sfDataGrid1.TableControl);
timer.Interval = 10000;
} |