private void transportService_StatusUptated(object sender, EventArgs e) { if (transportServiceSuccessStatus != null && transportServiceSuccessStatus == transportService.GetStatus()) { transportServiceActionCompleted.Set(); transportServiceSuccessStatus = null; } }
private void transportService_StatusUptated(object sender, EventArgs e) { string sStatus = transportService.GetStatus(); txtExchangeStatus.BeginInvoke(new Action(() => txtExchangeStatus.Text = (sStatus != null ? sStatus : "Unknown"))); }