Beispiel #1
0
        public List <CloudMinerInfoModelGet> QueryCommodityInfo(CloudMinerInfoModelSend cloudMinerInfoModelSend)
        {
            HeadModelGet <List <CloudMinerInfoModelGet> > headModelGet = BwHttpApiAccess <HeadModelGet <List <CloudMinerInfoModelGet> > > .PostMsg(
                ApiAddress.QueryCloudMiner, cloudMinerInfoModelSend);

            return(headModelGet.Code == 0 ? headModelGet.Data : null);
        }
Beispiel #2
0
        private void QueryCloudMiner()
        {
            CloudMinerInfoModelSend cloudMinerInfoModelSend = new CloudMinerInfoModelSend();

            cloudMinerInfoModelSend.Id   = -1;
            _listCloudMinerInfoModelGets = _cloudMinerApi.QueryCommodityInfo(cloudMinerInfoModelSend);
            dgvCloudMiner.DataSource     = _listCloudMinerInfoModelGets;
            gvCloudMiner.RefreshData();
        }