Zijian - 2013-09-13

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);
            }

        }
    }