public MealTime(CatHerder controller, Meal meal) { _controller = controller; _meal = meal; _controller.OnNewNomAvailable += new NewNomAvailableHandler(_controller_OnNewNomAvailable); InitializeComponent(); }
public Diet(CatHerder controller, Cat cat, List <Nom> currentDiet) { _controller = controller; _cat = cat; _dietInProgress = currentDiet; InitializeComponent(); }
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); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new DataGridTester()); //Application.Run(new StartHere()); CatHerder controller = new CatHerder(); controller.HerdCats(); }
public SelectOwner(CatHerder controller, bool createNew) { _controller = controller; _createNew = createNew; InitializeComponent(); }
public DataGridTester() { _controller = new CatHerder(); InitializeComponent(); }
public StartHere(CatHerder controller) { _catHerder = controller; InitializeComponent(); }