コード例 #1
0
ファイル: LayerIcon.xaml.cs プロジェクト: lynxliu/CameraTest
        public void sendSelectEvent(bool r)//给出简单的查询返回,成功,失败和返回的结果集
        {
            LynxPhotoLayerEventArgs le = new LynxPhotoLayerEventArgs();

            le.currentIcon  = this;
            le.currentLayer = pl;
            le.IsSelected   = r;
            if (selectLayer != null)
            {
                selectLayer(this, le);
            }
        }
コード例 #2
0
 void SelectLayerIcon_selectLayer(object sender, LynxPhotoLayerEventArgs e)
 {
     if (e.IsSelected)
     {
         ClearSelect();
         e.currentIcon.Select();
         SelectLayerIcon = e.currentIcon;
     }
     else
     {
         if (e.currentIcon != SelectLayerIcon)
         {
             if (stackLayer.Children.Contains(SelectLayerIcon))
             {
                 stackLayer.Children.Remove(SelectLayerIcon);
             }
             stackLayer.Children.Insert(stackLayer.Children.IndexOf(e.currentIcon), SelectLayerIcon);
             setLayersZIndex();
         }
     }
 }