Пример #1
0
 private void CloseButton_Click(object sender, RoutedEventArgs e)
 {
     if (null != Connection)
     {
         Connection.Close();
     }
     Close();
 }
Пример #2
0
 /// <summary>
 /// 关闭连接
 /// </summary>
 public void Close()
 {
     if (connector == null)
     {
         Debug.Log("Connector为空!!!");
         return;
     }
     connector.Close();
 }