P
parvizb
Guest
In the following code snippet, How to update multiple labels? for example: Have several parameters in the update method instead of one parameter
private void UIupdate(string name)
{
var timenow = DateTime.Now;
if((DateTime.Now-dt).Milliseconds<=50)
return;
synchronizationcontext.Post(new SendOrPostCallback(o =>
{
lblFirstName.Text = "name" + (string)o;
//lblLastName.Text = ?
//lblZipCode.Text=?
}),name );
dt = timenow;
}
Continue reading...
private void UIupdate(string name)
{
var timenow = DateTime.Now;
if((DateTime.Now-dt).Milliseconds<=50)
return;
synchronizationcontext.Post(new SendOrPostCallback(o =>
{
lblFirstName.Text = "name" + (string)o;
//lblLastName.Text = ?
//lblZipCode.Text=?
}),name );
dt = timenow;
}
Continue reading...