I'm trying to update alot of data... and when I click the update button the screen freezes... I bet it waits for the process to complete..
no errors: what I want is something like jquery.promise()
where I can execute them on a sequencial manner..but I still don't know if there's a similar code in C#
... I also have tried the task.factory
but can't still grasp the idea... thanks in advance
//first execution
gvPriceListDetails.Visible = false;
lblLoading.BringToFront();
lblLoading.Visible = true;
//wait for the updateprocess to complete
if(_svc.UpdatePriceList(_model))
{
UiHelpers.ShowSuccessForm("Price Lists Successfully Updated!");
EditingMode(false);
ShowDetails(_model.PricelistID);
}
//execute when update process is complete
lblLoading.Visible = false;
gvPriceListDetails.Visible = true;
I am using C#
and this is a windows form application.