using System; using System.Collections.Generic; using System.ComponentModel; namespace iMonitorApp { // Token: 0x02000017 RID: 23 public class BindingListInvoked : BindingList { // Token: 0x060000A4 RID: 164 RVA: 0x000075F3 File Offset: 0x000057F3 public BindingListInvoked() { } // Token: 0x060000A5 RID: 165 RVA: 0x000075FD File Offset: 0x000057FD public BindingListInvoked(ISynchronizeInvoke invoke) { this._invoke = invoke; } // Token: 0x060000A6 RID: 166 RVA: 0x0000760E File Offset: 0x0000580E public BindingListInvoked(IList items) { this.DataSource = items; } // Token: 0x060000A7 RID: 167 RVA: 0x00007620 File Offset: 0x00005820 protected override void OnListChanged(ListChangedEventArgs e) { bool flag = this._invoke != null && this._invoke.InvokeRequired; if (flag) { IAsyncResult asyncResult = this._invoke.BeginInvoke(new BindingListInvoked.ListChangedDelegate(base.OnListChanged), new object[] { e }); } else { base.OnListChanged(e); } } // Token: 0x1700001B RID: 27 // (get) Token: 0x060000A8 RID: 168 RVA: 0x00007678 File Offset: 0x00005878 // (set) Token: 0x060000A9 RID: 169 RVA: 0x0000768C File Offset: 0x0000588C public IList DataSource { get { return this; } set { bool flag = value != null; if (flag) { this.ClearItems(); base.RaiseListChangedEvents = false; foreach (T item in value) { base.Add(item); } base.RaiseListChangedEvents = true; this.OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1)); } } } // Token: 0x0400006A RID: 106 private ISynchronizeInvoke _invoke; // Token: 0x0200003A RID: 58 // (Invoke) Token: 0x0600020A RID: 522 private delegate void ListChangedDelegate(ListChangedEventArgs e); } }