// Get restrictions for the possible Outffitings private void RestrictionsChanged(OutfittingRestrictionsEventArgs e) { this._restrictions = e.Restrictions; }
// Recieve the outfitting changes, calculate the according stats and // send the new outfitting restrictions ( e.g. The Hullmass ) to the "OutfittingViewModel" private void SaveOutfitting(OutfittingChangedEventArgs e) { this._shipout = e.Outfitting; this._combinedInternals = new List<InternalModel>(e.Outfitting.InternalComps1); this._combinedInternals.AddRange(e.Outfitting.InternalComps2); CalculateAttributes(); RestrictionModel tmpres = new RestrictionModel((int)Double.Parse(this.Data.Hullladen)); var eventargs = new OutfittingRestrictionsEventArgs(tmpres); this._eventAggregator.GetEvent<OutfittingRestrictionsEvent>().Publish(eventargs); }