Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (22 sloc) 813 Bytes
using Plugin.Settings;
using PostSharp.Aspects;
using PostSharp.Aspects.Dependencies;
using PostSharp.Patterns.Model;
using PostSharp.Patterns.Recording;
using PostSharp.Serialization;
using System;
using System.Collections.Generic;
using System.Text;
namespace Sit
{
[AspectTypeDependency(AspectDependencyAction.Order, AspectDependencyPosition.After, typeof(RecordableAttribute))]
[AspectTypeDependency(AspectDependencyAction.Order, AspectDependencyPosition.After, typeof(NotifyPropertyChangedAttribute))]
[PSerializable]
class ThenSaveAttribute : OnMethodBoundaryAspect
{
public override void OnSuccess(MethodExecutionArgs args)
{
CrossSettings.Current.AddOrUpdateValue("Encounter", MainPage.Instance.Encounter.Serialize(), "thensave.txt");
}
}
}
You can’t perform that action at this time.