예제 #1
0
        public Form1()
        {
            string text = System.IO.File.ReadAllText("formConfig.ini");

            InitializeComponent();
            classWorker   = new ClassWorker();
            matlabCal     = new MatlabCal();
            classWeb      = new ClassWeb(new ClassWeb.OnGetPost(onPost));
            textBox1.Text = text;
        }
예제 #2
0
        void sendPost(object param)
        {
            ArrayList outList   = (ArrayList)param;
            string    tableName = (string)outList[0];
            double    distance  = (double)outList[1];
            string    time      = (string)outList[2];
            string    result    = ClassWeb.Post("http://127.0.0.1:3000/M2C/",
                                                "{\"name\":\"" + tableName + "\",\"distance\":" + distance + ",\"time\":\"" + time + "\"}");

            this.BeginInvoke(new ClassWeb.OnGetPost(onGetPost), new object[] { result });
        }