private void OnStatusChanged(ComServiceBase sender, StatusChangedArgs args) { if (StatusChanged != null) { StatusChanged(sender, args); } }
void ComService_StatusChanged(object sender, StatusChangedArgs e) { this.BeginInvoke(() => { _connectionStatus.Text = e.Status.ToString(); }); }