示例#1
0
 public void NotifyMembers(IGroupControl sender)
 {
     if (Owner != null && NotifyMembersGeneral != null)
     {
         NotifyMembersGeneral(this);
     }
 }
示例#2
0
 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);
        }
示例#4
0
 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
             });
         }
     }
 }
示例#7
0
 public override void Notified(IGroupControl sender, GroupNotificationArgs e)
 {
     State = false;
 }
示例#8
0
 public virtual void Notified(IGroupControl sender, GroupNotificationArgs e)
 {
 }