Example #1
0
 public MealTime(CatHerder controller, Meal meal)
 {
     _controller = controller;
     _meal       = meal;
     _controller.OnNewNomAvailable += new NewNomAvailableHandler(_controller_OnNewNomAvailable);
     InitializeComponent();
 }
Example #2
0
 public Diet(CatHerder controller, Cat cat, List <Nom> currentDiet)
 {
     _controller     = controller;
     _cat            = cat;
     _dietInProgress = currentDiet;
     InitializeComponent();
 }
Example #3
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);
 }
Example #4
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new DataGridTester());
            //Application.Run(new StartHere());
            CatHerder controller = new CatHerder();

            controller.HerdCats();
        }
Example #5
0
 public SelectOwner(CatHerder controller, bool createNew)
 {
     _controller = controller;
     _createNew  = createNew;
     InitializeComponent();
 }
 public DataGridTester()
 {
     _controller = new CatHerder();
     InitializeComponent();
 }
Example #7
0
 public StartHere(CatHerder controller)
 {
     _catHerder = controller;
     InitializeComponent();
 }