public UpdateAnimalForm(AnimalsForm form, int numberOfColumns, DataGridViewRow selectedRow, List <string> listOfNames, List <string> listOfFood) { InitializeComponent(); this.numberOfColumns = numberOfColumns; this.selectedRow = selectedRow; this.listOfCellNames = listOfNames; this.listOfFood = listOfFood; this.animalsForm = form; }
public FoodForm(AnimalsForm form) { InitializeComponent(); this.animalsForm = form; }
private void btnShowAnimals_Click(object sender, EventArgs e) { animalsForm = new AnimalsForm(); animalsForm.MdiParent = this.MdiParent; animalsForm.Show(); }