Beispiel #1
0
 private void SetList(List <Notification> notifications)
 {
     if (lvNotification.InvokeRequired)
     {
         SetListCallBack d = new SetListCallBack(SetList);
         this.Invoke(d, new object[] { notifications });
     }
     else
     {
         LoadList(notifications);
     }
 }
Beispiel #2
0
 private void SetListView(PairInfo p, string symbol)
 {
     if (!tokenSource.IsCancellationRequested)
     {
         if (this.tradeDitail.InvokeRequired)
         {
             SetListCallBack d = new SetListCallBack(SetListView);
             this.tradeDitail.Invoke(d, new object[] { p, symbol });
         }
         else
         {
             var item = this.getTradeRec(p, symbol);
             this.tradeDitail.Items.Add(item);
             //让滑动条显示在最下面
             tradeDitail.Items[tradeDitail.Items.Count - 1].EnsureVisible();
         }
     }
 }
Beispiel #3
0
 private void SetList(List<Notification> notifications)
 {
     if (lvNotification.InvokeRequired)
     {
         SetListCallBack d = new SetListCallBack(SetList);
         this.Invoke(d, new object[] { notifications });
     }
     else
     {
         LoadList(notifications);
     }
 }