private void UpdateCurrentOwnerInParent(Owner owner, Boolean deleted = false, Boolean force = false) { GTSportForm workingParentForm = (GTSportForm)this.ParentForm; if (force || workingParentForm.currentOwner.PrimaryKey == owner.PrimaryKey) { if (deleted) { // get the new default owner. workingParentForm.SetCurrentOwner(ownersService.GetDefaultOwner()); } else { // update any changes to the current owner. workingParentForm.SetCurrentOwner(owner); } } }
private void UpdateOtherForms() { GTSportForm workingParentForm = (GTSportForm)this.ParentForm; workingParentForm.UpdateRegionsOnForms(); }
private string GetCurrentOwnerKey() { GTSportForm workingParentForm = (GTSportForm)this.ParentForm; return(workingParentForm.currentOwner.PrimaryKey); }
private void UpdateOtherForms() { GTSportForm workingParentForm = (GTSportForm)this.ParentForm; workingParentForm.UpdateManufacturersOnForms(); }