Drop a timer onto customer view to refresh the customer list.
Add RefreshCustomerView() to update the customer list on demand.
This commit is contained in:
parent
58006f2955
commit
8781c5219d
@ -16,5 +16,26 @@ namespace QueueSys
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void frmCustomerView_Load(object sender, EventArgs e)
|
||||
{
|
||||
timer1.Start();
|
||||
RefreshCustomerView();
|
||||
}
|
||||
|
||||
private void RefreshCustomerView()
|
||||
{
|
||||
SqliteDataAccess sdaCxView = new SqliteDataAccess();
|
||||
List<CustomerView> cvList = new List<CustomerView>();
|
||||
|
||||
cvList = sdaCxView.LoadCustomerView();
|
||||
|
||||
dgvCustomerView.DataSource = cvList;
|
||||
}
|
||||
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
RefreshCustomerView();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user