WJC
2019-12-30 f1c3921b08bb22ac6f5db22d620e01d7e8e5c49f
ZigbeeApp/Shared/Phone/Device/Category/CategorySceneSelectImgByLocal.cs
@@ -12,8 +12,7 @@
        /// </summary>
        private FrameLayout bodyFrameLayout;
        public  Action action;
        public  Action<string> action;
        public CategorySceneSelectImgByLocal()
        {
@@ -71,8 +70,8 @@
            };
            bodyFrameLayout.AddChidren(scrollView);
            int k = 1;
            for (int j = 0; j < 2; j++)
            int k = 0;
            for (int j = 0; j < 5; j++)
            {
                var itemView = new FrameLayout()
                {
@@ -87,16 +86,17 @@
                        Width=Application.GetMinRealAverage(467),
                        Height=Application.GetMinRealAverage(311),
                        Gravity=Gravity.CenterVertical,
                        UnSelectedImagePath = $"SceneIcon/{k}.png",
                        UnSelectedImagePath = $"SceneIcon/{k}.jpg",
                    };
                    itemView.AddChidren(icon);
                    icon.SetViewShadow(true);
                    k++;
                    EventHandler<MouseEventArgs> selectIcon = (sender, e) =>
                    {
                        //CategoryAddScene.ImagePath = icon.UnSelectedImagePath;
                        Room.AddRoomScene.ImagePath = icon.UnSelectedImagePath;
                        action?.Invoke();
                        //Room.AddRoomScene.ImagePath = icon.UnSelectedImagePath;
                        action?.Invoke(icon.UnSelectedImagePath);
                        action = null;
                        this.RemoveFromParent();