Example #1
0
 /// <summary>
 /// Raises the <see cref="E:MetadataChanged"/> event.
 /// </summary>
 /// <param name="e">The <see cref="Rem.Ria.Infrastructure.View.Configuration.MetadataChangedEventArgs"/> instance containing the event data.</param>
 protected virtual void OnMetadataChanged(MetadataChangedEventArgs e)
 {
     if (MetadataChanged != null)
     {
         MetadataChanged(this, e);
     }
 }
Example #2
0
        private void MetadataProxyMetadataChanged(object sender, MetadataChangedEventArgs eventArgs)
        {
            if (_metadataItemApplicatorService == null)
            {
                _metadataItemApplicatorService = IoC.CurrentContainer.Resolve <IMetadataItemApplicatorService> ();
            }

            if (AssociatedObject != null)
            {
                var applicator = _metadataItemApplicatorService.GetMetadataItemApplicator(
                    AssociatedObject, eventArgs.MetadataItemDto);
                if (applicator != null)
                {
                    if (eventArgs.MetadataAction == MetadataAction.Added)
                    {
                        applicator.Apply(AssociatedObject, eventArgs.MetadataItemDto, _localStorage);
                    }
                    else
                    {
                        applicator.Unapply(AssociatedObject, eventArgs.MetadataItemDto, _localStorage);
                    }
                }
            }
        }
Example #3
0
 /// <summary>
 /// Raises the <see cref="E:MetadataChanged"/> event.
 /// </summary>
 /// <param name="e">The <see cref="Rem.Ria.Infrastructure.View.Configuration.MetadataChangedEventArgs"/> instance containing the event data.</param>
 protected virtual void OnMetadataChanged( MetadataChangedEventArgs e )
 {
     if ( MetadataChanged != null )
     {
         MetadataChanged ( this, e );
     }
 }