Exemplo n.º 1
0
 private void btnClose_Click(object sender, EventArgs e)
 {
     if (client.Stop())
     {
         string strMsg = string.Format("$Stop Success -> {0}({1})", client.ErrorMessage, client.ErrorCode);
         AddLog(strMsg);
         AddMsg(strMsg);
     }
     else
     {
         string strMsg = string.Format("$Stop Error -> {0}({1})", client.ErrorMessage, client.ErrorCode);
         AddLog(strMsg);
         AddMsg(strMsg);
     }
     SetAppState(AppState.Stoped);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Stop_Connect
 /// </summary>
 public void Stop_Connect()
 {
     if (client.Stop())
     {
         LogInfo?.Invoke("服务器 断开成功!!!");
     }
     else
     {
         LogErr?.Invoke("服务器 断开异常!!!");
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Stop_Connect
 /// </summary>
 public void Stop_Connect()
 {
     if (client.Stop())
     {
         Log.Info("服务器 断开成功!!!");
     }
     else
     {
         Log.Error("服务器 断开异常!!!");
     }
 }
Exemplo n.º 4
0
 private void btnStop_Click(object sender, EventArgs e)
 {
     // 停止服务
     AddMsg("$Server Stop");
     if (client.Stop())
     {
         SetAppState(AppState.Stoped);
     }
     else
     {
         AddMsg(string.Format("$Stop Error -> {0}({1})", client.ErrorMessage, client.ErrorCode));
     }
 }
Exemplo n.º 5
0
 private void btnStop_Click(object sender, EventArgs e)
 {
     // 停止服务
     AddMsg("$Server Stop");
     if (client.Stop())
     {
         SetAppState(AppState.Stoped);
     }
     else
     {
         AddMsg(string.Format("$Stop Error -> {0}({1})", client.GetLastErrorDesc(), client.GetlastError()));
     }
 }
        private void buttonStop_Click(object sender, EventArgs e)
        {
            appState = AppState.Stopping;

            client.Stop();
        }