public void NotifyMembers(IGroupControl sender) { if (Owner != null && NotifyMembersGeneral != null) { NotifyMembersGeneral(this); } }
public void NotifyMembers(IGroupControl sender, bool state) { if (Owner != null && NotifyMembersState != null) { NotifyMembersState(this, this.State); } }
public void Add(IGroupControl item) { item.Owner = this; item.NotifyMembersAction += new NotifyMembersActionDelegate(item_NotifyMembersAction); item.NotifyMembersGeneral += new NotifyMembersGeneralDelegate(item_NotifyMembersGeneral); item.NotifyMembersState += new NotifyMembersStateDelegate(item_NotifyMembersState); Items.Add(item); }
public void NotifyMembers(IGroupControl sender, GroupNotificationArgs e) { if (Owner != null && NotifyMembersAction != null) { NotifyMembersAction(this, new GroupNotificationArgs() { State = this.State, Data = this.Data }); } }
void item_NotifyMembersAction(IGroupControl sender, GroupNotificationArgs e) { foreach (var item in Items) { if (item != sender) { item.Notified(sender, e); } } }
void item_NotifyMembersGeneral(IGroupControl sender) { foreach (var item in Items) { if (item != sender) { item.Notified(sender, new GroupNotificationArgs() { State = false, Data = null }); } } }
public override void Notified(IGroupControl sender, GroupNotificationArgs e) { State = false; }
public virtual void Notified(IGroupControl sender, GroupNotificationArgs e) { }