public static void OnAccept(AcceptEventArgs e)
        {
            EventHandler <AcceptEventArgs> temp = Volatile.Read(ref acceptEvent);

            if (temp != null)
            {
                temp(null, e);
            }
        }
Example #2
0
 private void acceptMsg(object sender, AcceptEventArgs e)
 {
     if (e.SocketObj != null)
     {
         bool isSelected = false;
         if (socketModels[index1] == (SocketModel)e.SocketObj.Parent && e.SocketObj.Parent.Children[index2] == e.SocketObj)
         {
             isSelected = true;
         }
         ((SocketModel)e.SocketObj.Parent).UpdateSubTreeView(e.SocketObj, isSelected);
     }
     Dispatcher.Invoke(RefreshTree);
 }