Example #1
0
        public void StartSync(string str)
        {
            if (this.InvokeRequired)
            {
                AppendLog al = new AppendLog(StartSync);
                this.Invoke(al, str);
            }
            else
            {
                int syncType = 0;
                try
                {
                    syncType = int.Parse(str);
                }
                catch
                {
                }

                txtLog.Text = string.Empty;
                SyncHelp.StartSync(syncType);
                btnStart.Enabled    = false;
                btnCancel.Enabled   = false;
                btnStop.Enabled     = true;
                btnSyncTime.Enabled = false;
            }
        }
Example #2
0
 public void StartSync(string str)
 {
     if (this.InvokeRequired)
     {
         AppendLog al = new AppendLog(StartSync);
         this.Invoke(al, str);
     }
     else
     {
         txtLog.Text = string.Empty;
         SyncHelp.StartSync();
         btnStart.Enabled  = false;
         btnCancel.Enabled = false;
         btnStop.Enabled   = true;
     }
 }