/// <summary> /// <para> /// Updates the manufacturers on child forms when a manufacture is changed / added / deleted. /// </para> /// <para>Called the manufacturers form.</para> /// </summary> public void UpdateManufacturersOnForms() { foreach (Form form in this.MdiChildren) { if (form.Name == "OwnerCarsForm") { OwnerCarsForm ownerCarsForm = (OwnerCarsForm)form; ownerCarsForm.UpdateFromOtherForms(); } } }
/// <summary>Sets the current owner.</summary> /// <param name="owner">The owner.</param> public void SetCurrentOwner(Owner owner) { currentOwner = owner; tsslCurrentOwner.Text = currentOwner.OwnerName; foreach (Form form in this.MdiChildren) { if (form.Name == "OwnerCarsForm") { OwnerCarsForm ownerCarsForm = (OwnerCarsForm)form; ownerCarsForm.UpdateFromOtherForms(); } } }