コード例 #1
0
 private void InternalDispatchDisposed(Utils.DelayedList <TypeRow> rows)
 {
     foreach (var row in rows.Internal)
     {
         if (row.Control != null)
         {
             var c = row.Control as Control;
             c.DispatchDisposed();
         }
         else
         {
             if (row.Children == null)
             {
                 continue;
             }
             InternalDispatchDisposed(row.Children.controlRows);
         }
     }
 }
コード例 #2
0
            private void InternalDispatchDropped(Utils.DelayedList <TypeRow> rows, string path, ref bool handle)
            {
                if (handle)
                {
                    return;
                }

                foreach (var row in rows.Internal)
                {
                    if (row.Control != null)
                    {
                        var c = row.Control as Control;
                        c.DispatchDropped(path, ref handle);
                        if (handle)
                        {
                            break;
                        }
                    }
                    if (row.Children != null)
                    {
                        InternalDispatchDropped(row.Children.controlRows, path, ref handle);
                    }
                }
            }