public void IlishfishListMethod() { for (int i = 1; i <= 100; i++) { string Ilishname = "Iatla"; String Ilishweight = "3kg"; IlishFishType ilishfishtype = new IlishFishType(Ilishname, Ilishweight); //IlishfishList.Add(ilishfishtype); // ilishrepo.add(ilishfishtype); GRIlish.add(ilishfishtype); } Console.WriteLine("Ilish fish list amount : " + GRIlish.getall().Count); }
public void SaleIlishAmount(Object ob, Sales s) { int cnt3 = GRIlish.getall().Count; //Console.WriteLine("Count : " + cnt); listIlish = GRIlish.getall().Count - s.fishAmount; //Console.WriteLine("Count : " + cnt + " " + "listui : " + listrui); for (int i = cnt3 - 1; i >= (cnt3 - s.fishAmount); i--) { //ilishfishListRepo.RemoveAt(i); // Console.WriteLine("remove rui fish from list : " + i); GRIlish.remove("ilish", i); } Console.WriteLine("Available in market inventory katla fish : " + GRIlish.getall().Count); if (listIlish <= 50) { //int temp = listrui + HatcheryInventory.hatcheryfishrui; hatchery.BuyIlishAmount(s.fishAmount); int temp = listIlish + HatcheryInventory.hatcheryfishilish; Console.WriteLine("Market Inventory Buy from hatchery amount : " + HatcheryInventory.hatcheryfishilish); Console.WriteLine("Now available in Marketinventory : " + temp); for (int i = listIlish + 1; i <= temp; i++) { string Ilishname = "Katlaui"; String Ilishweight = "3kg"; IlishFishType Ilishfishtype = new IlishFishType(Ilishname, Ilishweight); //IlishfishList.Add(Ilishfishtype); //ilishrepo.add(Ilishfishtype); GRIlish.add(Ilishfishtype); } Console.WriteLine("New Ilish COunt: " + GRIlish.getall().Count); } }
public void add(IlishFishType ilishFishType) { MarketInventory.ilishfishListRepo.Add(ilishFishType); }