コード例 #1
0
ファイル: Group.cs プロジェクト: Tophotoart123456/Tt
        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);
        }
コード例 #2
0
 private void InitThread()
 {
     threadBase        = new ThreadBase();
     threadBase.SMTMF += ThreadBase_SMTMF;
     threadBase.StartGetClientThread();
 }