public MainWindow() { InitializeComponent(); Animals = new ObservableCollection <IWalker>(); // make siome aminals Frog frog = new Frog(4, "Bart", true, 4, 5); Dog dog = new Dog("Labradoodle", 35, "Pax", 4, 10); Duck duck = new Duck(4, "Moo", 2, 7.3); StarWars C3Po = new StarWars(3, "C3PO", 2, 4); Animals.Add(frog); Animals.Add(dog); Animals.Add(duck); Animals.Add(C3Po); lvAnimals.ItemsSource = Animals; }
public MainWindow() { InitializeComponent(); Animals = new ObservableCollection <IWalker>(); // make siome aminals Frog frog = new Frog(4, "Bart", true, 5.5, 4); Dog dog = new Dog("Labradoodle", 35, "Pax", 10.1, 4); Duck duck = new Duck(4, "Moo", 7.3, 2); StarWarsRobot C3P0 = new StarWarsRobot(9, 8.8, 2); Animals.Add(frog); Animals.Add(dog); Animals.Add(duck); Animals.Add(C3P0); lvAnimals.ItemsSource = Animals; }
public MainWindow() { InitializeComponent(); LF = new ObservableCollection <ILifeFunctions>(); // make siome aminals Frog frog = new Frog(4, "Bart", true, 400000000); Dog dog = new Dog("Labradoodle", 35, "Pax", 2); Duck duck = new Duck(4, "Moo", 69); RobotBoi bot = new RobotBoi(100, 50, "ABS plastic", "fred", false); LF.Add(frog); LF.Add(dog); LF.Add(duck); LF.Add(bot); lvAnimals.ItemsSource = LF; }
public MainWindow() { InitializeComponent(); Animals = new ObservableCollection <IWalker>(); // make siome aminals Frog frog = new Frog(4, "Bart", true, 4, 159.5); Dog dog = new Dog("Labradoodle", 35, "Pax", 4, 2251.2); Duck duck = new Duck(4, "Moo", 2, 147281782.232); StarwarsRobot C3PO = new StarwarsRobot(9, 8.8, 2); Animals.Add(frog); Animals.Add(dog); Animals.Add(duck); Animals.Add(C3PO); lvAnimals.ItemsSource = Animals; }