You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
960 B
40 lines
960 B
2 weeks ago
|
using System;
|
||
|
using System.ComponentModel;
|
||
|
|
||
|
namespace iMonitorApp
|
||
|
{
|
||
|
// Token: 0x02000019 RID: 25
|
||
|
public class AsyncBindingList<T> : BindingList<T>
|
||
|
{
|
||
|
// Token: 0x060000BA RID: 186 RVA: 0x00008400 File Offset: 0x00006600
|
||
|
public AsyncBindingList(ISynchronizeInvoke invoke)
|
||
|
{
|
||
|
this.invoke = invoke;
|
||
|
}
|
||
|
|
||
|
// Token: 0x060000BB RID: 187 RVA: 0x00008414 File Offset: 0x00006614
|
||
|
protected override void OnListChanged(ListChangedEventArgs e)
|
||
|
{
|
||
|
bool invokeRequired = this.invoke.InvokeRequired;
|
||
|
if (invokeRequired)
|
||
|
{
|
||
|
IAsyncResult asyncResult = this.invoke.BeginInvoke(new AsyncBindingList<T>.ListChangedDelegate(base.OnListChanged), new object[]
|
||
|
{
|
||
|
e
|
||
|
});
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
base.OnListChanged(e);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Token: 0x04000077 RID: 119
|
||
|
private ISynchronizeInvoke invoke;
|
||
|
|
||
|
// Token: 0x0200003F RID: 63
|
||
|
// (Invoke) Token: 0x06000217 RID: 535
|
||
|
private delegate void ListChangedDelegate(ListChangedEventArgs e);
|
||
|
}
|
||
|
}
|