Beispiel #1
0
 private void StartHere_Load(object sender, EventArgs e)
 {
     if (Equals(null, _catHerder))
         _catHerder = new CatHerder();
     _catsList.DataSource = new BindingList<Cat>(_catHerder.Cats);
     _catHerder.OnNewCatsAvailable += new NewCatsAvailableHandler(_catHerder_OnNewCatsAvailable);
 }
Beispiel #2
0
 public MealTime(CatHerder controller, Meal meal)
 {
     _controller = controller;
     _meal = meal;
     _controller.OnNewNomAvailable += new NewNomAvailableHandler(_controller_OnNewNomAvailable);
     InitializeComponent();
 }
Beispiel #3
0
 public Diet(CatHerder controller, Cat cat, List<Nom> currentDiet)
 {
     _controller = controller;
     _cat = cat;
     _dietInProgress = currentDiet;
     InitializeComponent();
 }
Beispiel #4
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     //Application.Run(new DataGridTester());
     //Application.Run(new StartHere());
     CatHerder controller = new CatHerder();
     controller.HerdCats();
 }
Beispiel #5
0
 public StartHere(CatHerder controller)
 {
     _catHerder = controller;
     InitializeComponent();
 }
Beispiel #6
0
 public SelectOwner(CatHerder controller, bool createNew)
 {
     _controller = controller;
     _createNew = createNew;
     InitializeComponent();
 }