need to do further decoupling business codes from UI codes, for this one and #32.
void SyncAll()
{
foreach (Control control in panel1.Controls)
{
UcSync syncUc = control as UcSync;
//Debug.Assert(syncUc != null, "What, not syncUc?");
if (syncUc == null) //could be the status box
continue;
IAsyncResult r = syncUc.Sync();
while (!r.IsCompleted)
{
System.Threading.Thread.Sleep(200);
}
}
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
need to do further decoupling business codes from UI codes, for this one and #32.