Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private void InitThread()
 {
     threadBase        = new ThreadBase();
     threadBase.SMTMF += ThreadBase_SMTMF;
     threadBase.StartGetClientThread();
 }