Esempio n. 1
0
        //从服务器读取库存清单并刷新显示
        private void StoreManagementTab_GetStoreDataFromServer()
        {
            //向服务器发送请求并接收请求
            storeManagementTab_viewStoreReturns = JsonHelper.DeserializeJsonToObject <ViewStoreReturns>(
                client.SendToServerAndWait(storeManagementTab_viewStoreProduct.GenerateObjectClient()));

            //给productView赋值
            storeManagementTab_productView.products = storeManagementTab_viewStoreReturns.products;

            //呈现视图
            storeManagementTab_tableView.flushAll();
        }
Esempio n. 2
0
 private void requestBtn_Click(object sender, EventArgs e)
 {
     /*string testString = requestIDTextBox.Text;
      * Console.WriteLine("request: " + testString);
      *
      * resLabel.Text = client.SendToServerAndWait(testString);*/
     MessageBox.Show(client.SendToServerAndWait(tmp2.GenerateObjectClient()));
 }