Exemple #1
0
 private void urlChildUpdated(URLWrapper sender)
 {
     if (urls.IndexOf(sender) == selectedUrlIndex)
     {
         var w = urls[selectedUrlIndex];
         if (w.GetChildren() != null && w.GetChildren().Count == 1)
         {
             SetSelectedURL(selectedUrlIndex);
         }
     }
 }
Exemple #2
0
 private void recMade(URLWrapper sender)
 {
     if (selectedUrlIndex >= 0 && selectedUrlIndex < urls.Count)
     {
         var children = urls[selectedUrlIndex].GetChildren();
         if (children != null)
         {
             var iw  = (ImageWrapper)sender;
             var idx = children.IndexOf(iw);
             if (idx >= 0 && idx == selectedImgIndex)
             {
                 Invoke(new MethodInvoker(async() =>
                 {
                     await SetSelectedMatch(iw.GetSelectedMatchIndex());
                 }));
             }
         }
     }
 }