added samples
[windows-sources.git] / sdk / samples / WPFSamples / WPFAddInDataBindingSample / CSharp / Contracts / contracts.cs
blobe38618381554e1cfb8160569dcbed1c764ae3e96
1 using System.AddIn.Contract; // IContract, INativeHandleContract
2 using System.AddIn.Pipeline; // AddInContractAttribute
3 using System.ComponentModel; // PropertyChangedEventHandler
5 namespace Contracts
7 [AddInContract]
8 public interface IAddInContract : IContract
10 INativeHandleContract GetAddInUI(IPersonContract person);
13 public interface IPersonContract : IContract
15 // Name "property"
16 string GetName();
17 void SetName(string value);
19 // Age "property"
20 int GetAge();
21 void SetAge(int value);
23 IPropertyChangedNotifier PropertyChangedNotifier { get; set; }
26 public interface IPropertyChangedNotifier: IContract
28 event PropertyChangedEventHandler PropertyChanged;
29 void PropertyChangeNotification(string propertyName);