void ActiveSync_Active() { if (this.InvokeRequired) { OpenNETCF.Desktop.Communication.ActiveHandler del = new OpenNETCF.Desktop.Communication.ActiveHandler(ActiveSync_Active); this.Invoke(del); } else { richTextBox1.AppendText("Active\n"); toolStripStatusLabel1.Text = status[0]; toolStripStatusLabel1.Image = Properties.Resources.OK; } }
void ActiveSync_Active() { if (this.InvokeRequired) { OpenNETCF.Desktop.Communication.ActiveHandler del = new OpenNETCF.Desktop.Communication.ActiveHandler(ActiveSync_Active); this.Invoke(del); } else { terminalRapi.SetDeviceTime(Properties.Settings.Default.TSDDBPAth); richTextBox1.AppendText("Active\n"); toolStripStatusLabel1.Text = status[0]; toolStripStatusLabel1.Image = Properties.Resources.OK; } }