private void OpenConnection() { CommonControl.OpenConnection(); if (CommonControl.CheckSocketState()) { Dispatcher.Invoke(new Action(delegate { CpldStatus.Text = "在线"; ImgCpldStatus.Source = new BitmapImage(new Uri("Icon/cpldOnline.png", UriKind.RelativeOrAbsolute)); LoadBoardCount(); } )); } }