private async void StartAnim() { while (true) { await Fish1.TranslateTo(-100, Fish1.Y + 20, 3000); Fish1.RotationY = 180; await Fish1.TranslateTo(100, Fish1.Y + 20, 3000); Fish1.RotationY = 0; } }
static void Main(string[] args) { Fish fish = new fish(); fish.name = "Сом"; fish.price = 45; fish.age = 30; fish.place = "Озеро"; fish.GetfishInfo(); Fish1 fish1 = new Fish1(); fish1.type = "Осетровые"; fish1.name = "Осетр"; fish1.place = "Реки"; fish1.price = 100; fish1.mass = 7; fish1.GetFish1Info(); Console.ReadLine(); }
public void RemoveFish(Fish1 fish) { _fishes.Remove(fish); }