Notify Property Changed Base public class Notify Property

  • Slides: 18
Download presentation

Notify. Property. Changed. Base public class Notify. Property. Changed. Base : INotify. Property. Changed

Notify. Property. Changed. Base public class Notify. Property. Changed. Base : INotify. Property. Changed { public event Property. Changed. Event. Handler Property. Changed; protected void Fire. Property. Changed( string Property. Name) { if (this. Property. Changed != null) { this. Property. Changed(this, new Property. Changed. Event. Args(Property. Name)); } } } わんくま同盟 大阪勉強会 #17

DEMO 2のデータたち public class Document : Notify. Property. Changed. Base { public Row[] rows

DEMO 2のデータたち public class Document : Notify. Property. Changed. Base { public Row[] rows { get { return _rows; } set { _rows = value; } } private Row[] _rows = new Row[] { new Row(){名前="なか", 年齢 = 32, 性別=性別Enum. 男}, new Row(){名前="えムナウ", 年齢 = 21, 性別=性別Enum. 男}, new Row(){名前="R田中", 年齢 = 18, 性別=性別Enum. シラネ} }; } わんくま同盟 大阪勉強会 #17