private string GetFlightplan(string strtrainname) { int index = ThreadBase.trainPlans.FindIndex(oct => oct.trainingPlanName.Equals(strtrainname)); if (index == -1) { return(""); } //update on 20190927 int airportid = ThreadBase.trainPlans[index].airportId; // index = ThreadBase.trainPlans[index].trainingPlanId; string strParm = "{\"userId\":1,\"airportId\":" + airportid + ",\"trainingPlanId\":" + index + ",\"trainingPlanName\":\"" + strtrainname + "\"}"; string strlink = ThreadBase.GetHttpUrl("readFlightPlan"); strParm = cla_http.GetHttpData(strlink, strParm); if (strParm == "") { return(""); } return(strParm); }
private void InitThread() { threadBase = new ThreadBase(); threadBase.SMTMF += ThreadBase_SMTMF; threadBase.StartGetClientThread(); }