Exemplo n.º 1
0
 private void FrmUpdateData_Load(object sender, EventArgs e)
 {
     try
     {
         BuildCmbGroup();
         BuildCmbAccount(cmbGroup.Text);
         BuildLstCars(ConfigCtrl.GetCarsInMarket());
         BuildLstMatches(ConfigCtrl.GetMatches());
         BuildLstFruits(ConfigCtrl.GetFruits());
         BuildLstCalves(ConfigCtrl.GetCalvesInShop());
         BuildLstAnimalProducts(ConfigCtrl.GetAnimalProducts());
         BuildLstFishFrys(ConfigCtrl.GetFishFrysInShop());
         BuildLstFishTackles(ConfigCtrl.GetFishTacklesInShop());
         BuildLstFishMatured(ConfigCtrl.GetFishMaturedInMarket());
         BuildLstAssets(ConfigCtrl.GetAssetsInShop());
         BuildLstDishes(ConfigCtrl.GetDishesInMenu());
         BuildGridViewSeeds(AddColumnsToTable(ConfigCtrl.GetSeedsToTable()), "种子列表读取失败!");
         BuildRankGridViewSeeds(AddRankColumnsToTable(ConfigCtrl.GetRankSeedsToTable()), "等级种子列表读取失败!");
         BuildDgvAssetRecommends(AddColumnsToAssetRecommends(ConfigCtrl.GetAssetsToTable()), "推荐买卖率表读取失败!");
         BuildDgvAdvancedPurchase(AddColumnsToAdvancedPurchase(ConfigCtrl.GetAdvancedPurchaseToTable()), "高级购买配置表读取失败!");
         BuildDgvTransactionDishes(AddColumnsToTransactionDishes(ConfigCtrl.GetTransactionDishesToTable()), "菜肴交易价格表读取失败!");
         _shopseeds = ConfigCtrl.GetSeedsInShop();
     }
     catch (Exception ex)
     {
         Program.ShowMessageBox("FrmUpdateData", ex);
     }
 }
Exemplo n.º 2
0
 private void btnReloadAssetRecommends_Click(object sender, EventArgs e)
 {
     try
     {
         BuildDgvAssetRecommends(AddColumnsToAssetRecommends(ConfigCtrl.GetAssetsToTable()), "推荐买卖率表读取失败!");
     }
     catch (Exception ex)
     {
         Program.ShowMessageBox("FrmUpdateData.btnReloadAssetRecommends_Click", ex);
     }
 }