コード例 #1
0
        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);
                }
            }
        }
コード例 #2
0
        private void UpdateOtherForms()
        {
            GTSportForm workingParentForm = (GTSportForm)this.ParentForm;

            workingParentForm.UpdateRegionsOnForms();
        }
コード例 #3
0
        private string GetCurrentOwnerKey()
        {
            GTSportForm workingParentForm = (GTSportForm)this.ParentForm;

            return(workingParentForm.currentOwner.PrimaryKey);
        }
コード例 #4
0
        private void UpdateOtherForms()
        {
            GTSportForm workingParentForm = (GTSportForm)this.ParentForm;

            workingParentForm.UpdateManufacturersOnForms();
        }