From d9fd4c59bea0f21d4c8241920cef90440cf53f43 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期六, 28 八月 2021 17:20:45 +0800
Subject: [PATCH] 2021-8-28-05

---
 HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FaceSettingPage.cs |  197 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 197 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FaceSettingPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FaceSettingPage.cs
new file mode 100644
index 0000000..9987878
--- /dev/null
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FaceSettingPage.cs
@@ -0,0 +1,197 @@
+锘�//using System;
+//using HDL_ON.UI.CSS;
+//using Shared;
+//namespace HDL_ON.UI
+//{
+//    public class FaceSettingPage : FrameLayout
+//    {
+//        FrameLayout bodyView;
+
+//        #region 鍥炬爣閫夋嫨閮ㄥ垎鍥炬爣
+//        /// <summary>
+//        /// 鑳屾櫙鍥鹃�夐」鍖哄煙
+//        /// </summary>
+//        FrameLayout pictureOptionView;
+//        /// <summary>
+//        /// 鑳屾櫙鍥鹃�夐」閫夋嫨鍖哄煙
+//        /// </summary>
+//        VerticalScrolViewLayout optionView;
+//        /// <summary>
+//        /// 鎷嶇収鎸夐挳
+//        /// </summary>
+//        Button btnTakePicture;
+//        /// <summary>
+//        /// 鐩稿唽鎸夐挳
+//        /// </summary>
+//        Button btnAlbum;
+//        /// <summary>
+//        /// 鍙栨秷鎸夐挳
+//        /// </summary>
+//        Button btnCancel;
+//        #endregion
+
+//        public FaceSettingPage()
+//        {
+//            bodyView = this;
+//        }
+
+//        public void LoadPage()
+//        {
+//            new TopViewDiv(bodyView, Language.StringByID(StringId.FacePassage)).LoadTopView();
+//            bodyView.BackgroundColor = CSS_Color.BackgroundColor;
+
+//            var contentView = new FrameLayout()
+//            {
+//                Y = Application.GetRealHeight(64),
+//                Height = Application.GetRealHeight(667 - 64),
+//                BackgroundColor = 0xFFFFFFFF,
+//            };
+//            bodyView.AddChidren(contentView);
+
+
+//            var imageName = Guid.NewGuid().ToString();
+//            CropImage.TakePicture((imagePath) =>
+//            {
+
+//            }, imageName, 4, 3);
+
+
+//        }
+
+
+
+        
+//        /// <summary>
+//        /// 鍔犺浇鍥炬爣閫夋嫨閫夐」
+//        /// </summary>
+//        void LoadPictureOptionView()
+//        {
+//            var pView = new FrameLayout()
+//            {
+//                BackgroundColor = CSS_Color.DialogTransparentColor1,
+//            };
+//            bodyView.AddChidren(pView);
+
+//            pictureOptionView = new FrameLayout()
+//            {
+//                Y = Application.GetRealHeight(445),
+//                Height = Application.GetRealHeight(250),
+//                AnimateSpeed = 0.3f,
+//                Animate = Animate.DownToUp,
+//            };
+//            pView.AddChidren(pictureOptionView);
+
+//            optionView = new VerticalScrolViewLayout()
+//            {
+//                Gravity = Gravity.CenterHorizontal,
+//                Width = Application.GetRealWidth(343),
+//                Height = Application.GetRealHeight(150),
+//                BackgroundColor = CSS_Color.MainBackgroundColor,
+//                Radius = (uint)Application.GetRealWidth(12),
+//            };
+//            pictureOptionView.AddChidren(optionView);
+
+//            btnTakePicture = new Button()
+//            {
+//                Height = Application.GetRealHeight(50),
+//                TextAlignment = TextAlignment.Center,
+//                TextColor = CSS_Color.TextualColor,
+//                SelectedTextColor = CSS_Color.MainColor,
+//                TextSize = CSS_FontSize.SubheadingFontSize,
+//                TextID = StringId.TakePicture,
+//            };
+//            optionView.AddChidren(btnTakePicture);
+
+//            optionView.AddChidren(new Button() { Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
+
+//            btnAlbum = new Button()
+//            {
+//                Height = Application.GetRealHeight(50),
+//                TextAlignment = TextAlignment.Center,
+//                TextColor = CSS_Color.TextualColor,
+//                SelectedTextColor = CSS_Color.MainColor,
+//                TextSize = CSS_FontSize.SubheadingFontSize,
+//                TextID = StringId.Album,
+//            };
+//            optionView.AddChidren(btnAlbum);
+
+//            optionView.AddChidren(new Button() { Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
+
+//            btnCancel = new Button()
+//            {
+//                Gravity = Gravity.CenterHorizontal,
+//                Y = Application.GetRealHeight(8) + optionView.Bottom,
+//                Width = Application.GetRealWidth(343),
+//                Height = Application.GetRealHeight(50),
+//                BackgroundColor = CSS_Color.MainBackgroundColor,
+//                Radius = (uint)Application.GetRealWidth(12),
+//                TextID = StringId.Cancel,
+//                TextColor = CSS_Color.WarningColor,
+//                TextSize = CSS_FontSize.SubheadingFontSize,
+//            };
+//            pictureOptionView.AddChidren(btnCancel);
+
+
+//            LoadEvent_PictureOptionViewEventList(pView);
+//        }
+
+//        /// <summary>
+//        /// 鍔犺浇鑳屾櫙鍥鹃�夋嫨鍖哄煙浜嬩欢鍒楄〃
+//        /// </summary>
+//        void LoadEvent_PictureOptionViewEventList(FrameLayout pView)
+//        {
+//            pictureOptionView.MouseUpEventHandler = (sender, e) =>
+//            {
+//                pictureOptionView.Parent.RemoveFromParent();
+//            };
+//            pView.MouseUpEventHandler = (sender, e) =>
+//            {
+//                pictureOptionView.Parent.RemoveFromParent();
+//            };
+
+//            btnCancel.MouseUpEventHandler = (sender, e) =>
+//            {
+//                pictureOptionView.Parent.RemoveFromParent();
+//            };
+//            btnTakePicture.MouseDownEventHandler = (sender, e) => {
+//                btnTakePicture.IsSelected = true;
+//            };
+//            btnTakePicture.MouseUpEventHandler = (sender, e) =>
+//            {
+//                btnTakePicture.IsSelected = false;
+//                var imageName = Guid.NewGuid().ToString();
+//                //var imageName = scene.sid;
+//                CropImage.TakePicture((imagePath) =>
+//                {
+//                    CropImageCallBack(imagePath);
+
+//                }, imageName, 4, 3);
+
+//                //if (pageTitleId == StringId.EditScene)
+//                //{
+//                //    scene.SaveFunctionData();
+//                //}
+//                pictureOptionView.Parent.RemoveFromParent();
+//            };
+//            btnAlbum.MouseDownEventHandler = (sender, e) => {
+//                btnAlbum.IsSelected = true;
+//            };
+
+//            btnAlbum.MouseUpEventHandler = (sender, e) =>
+//            {
+//                btnAlbum.IsSelected = false;
+//                //浠庣浉鍐岄�夋嫨鍥剧墖瑁佸壀
+//                var imageName = Guid.NewGuid().ToString();
+//                //var imageName = scene.sid;
+//                CropImage.SelectPicture((imagePath) =>
+//                {
+//                    //CropImageCallBack(imagePath);
+//                }, imageName, 4, 3);
+
+//                pictureOptionView.Parent.RemoveFromParent();
+//            };
+
+//        }
+
+//    }
+//}

--
Gitblit v1.8.0