34 lines
916 B
C#
34 lines
916 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Kindlebox
|
|
{
|
|
internal class RabbitList
|
|
{
|
|
public static List<Rabbit> rabbits;
|
|
|
|
static RabbitList()
|
|
{
|
|
rabbits = new List<Rabbit>();
|
|
}
|
|
|
|
public static void Record(Guid rabbitID, string farmName, string rabbitName, string earNumber, string color, string regNum, string gcNum, decimal weight, DateTime birthday, string sex, int status)
|
|
{
|
|
rabbits.Add(new Rabbit (rabbitID, farmName, rabbitName, earNumber, color, regNum, gcNum, weight, birthday, sex, status ));
|
|
}
|
|
|
|
public static void Display()
|
|
{
|
|
foreach (var rabbit in rabbits)
|
|
{
|
|
Console.WriteLine(rabbit.ToString());
|
|
}
|
|
}
|
|
}
|
|
}
|