public Store GetStore() { if (this.Store.Primary != null) { return this.Store.Primary; } if (this.StoreID.IsNotEmpty()) { return ControlUtils.FindControl<Store>(this, this.StoreID, true); } return null; } }