From 96e9ff2e5a54f54cdbb6b8b2f049fdf6a837de3c Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 23 八月 2023 14:28:22 +0800
Subject: [PATCH] 备份1

---
 OnPro/HDL-ON_Android/LeChengVideo/Form/MonitorFragment.cs |  250 +++++++++++++++++++++++++-------------------------
 1 files changed, 125 insertions(+), 125 deletions(-)

diff --git a/OnPro/HDL-ON_Android/LeChengVideo/Form/MonitorFragment.cs b/OnPro/HDL-ON_Android/LeChengVideo/Form/MonitorFragment.cs
index f5d7ebb..0525971 100644
--- a/OnPro/HDL-ON_Android/LeChengVideo/Form/MonitorFragment.cs
+++ b/OnPro/HDL-ON_Android/LeChengVideo/Form/MonitorFragment.cs
@@ -1,151 +1,151 @@
 锘�
-using System.Threading;
-using Android.App;
-using Android.Icu.Text;
-using Android.OS;
-using Android.Views;
-using Android.Widget;
-using Java.Util;
+//using System.Threading;
+//using Android.App;
+//using Android.Icu.Text;
+//using Android.OS;
+//using Android.Views;
+//using Android.Widget;
+//using Java.Util;
 
-namespace HDL_ON_Android.LeChengView.Form
-{
-    public class MonitorFragment : Fragment, View.IOnClickListener
-    {
+//namespace HDL_ON_Android.LeChengView.Form
+//{
+//    public class MonitorFragment : Fragment, View.IOnClickListener
+//    {
 
-        private View mView;
+//        private View mView;
 
-        // 鎴浘
-        private LinearLayout screenshotLayout;
-        private ImageView screenImage;
-        private TextView ScreenText;
+//        // 鎴浘
+//        private LinearLayout screenshotLayout;
+//        private ImageView screenImage;
+//        private TextView ScreenText;
 
-        //寮�閿�
-        private LinearLayout unlockLayout;
-        private ImageView unlockImag;
-        private TextView unlockText;
+//        //寮�閿�
+//        private LinearLayout unlockLayout;
+//        private ImageView unlockImag;
+//        private TextView unlockText;
 
-        // 鏇存柊绾跨▼
-        private Thread thread = null;
+//        // 鏇存柊绾跨▼
+//        private Thread thread = null;
 
-        private LeChengVideoActivity CurtActivity;
+//        private LeChengVideoActivity CurtActivity;
 
-        public override void OnCreate(Bundle savedInstanceState)
-        {
-            base.OnCreate(savedInstanceState);
+//        public override void OnCreate(Bundle savedInstanceState)
+//        {
+//            base.OnCreate(savedInstanceState);
 
-            CurtActivity = (LeChengVideoActivity)this.Activity;
-        }
+//            CurtActivity = (LeChengVideoActivity)this.Activity;
+//        }
 
-        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
-        {
-            mView = inflater.Inflate(Resource.Layout.fragment_monitor, container, false);
+//        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
+//        {
+//            mView = inflater.Inflate(Resource.Layout.fragment_monitor, container, false);
 
-            IniView();
+//            IniView();
 
-            CurtActivity.Play();
-            CurtActivity.OpenAudio();
+//            CurtActivity.Play();
+//            CurtActivity.OpenAudio();
 
-            return mView;
-        }
+//            return mView;
+//        }
 
-        private void IniView()
-        {
-            screenshotLayout = (LinearLayout)mView.FindViewById(Resource.Id.icon_sceenshotLayout);
-            screenImage = (ImageView)mView.FindViewById(Resource.Id.icon_sceenshotImg);
-            ScreenText = (TextView)mView.FindViewById(Resource.Id.icon_sceenshotText);
+//        private void IniView()
+//        {
+//            screenshotLayout = (LinearLayout)mView.FindViewById(Resource.Id.icon_sceenshotLayout);
+//            screenImage = (ImageView)mView.FindViewById(Resource.Id.icon_sceenshotImg);
+//            ScreenText = (TextView)mView.FindViewById(Resource.Id.icon_sceenshotText);
 
-            unlockLayout = (LinearLayout)mView.FindViewById(Resource.Id.icon_unlockLayout);
-            unlockImag = (ImageView)mView.FindViewById(Resource.Id.icon_unlockImg);
-            unlockText = (TextView)mView.FindViewById(Resource.Id.icon_unlockText);
+//            unlockLayout = (LinearLayout)mView.FindViewById(Resource.Id.icon_unlockLayout);
+//            unlockImag = (ImageView)mView.FindViewById(Resource.Id.icon_unlockImg);
+//            unlockText = (TextView)mView.FindViewById(Resource.Id.icon_unlockText);
 
-            unlockLayout.SetOnClickListener(this);
-            screenshotLayout.SetOnClickListener(this);
-        }
+//            unlockLayout.SetOnClickListener(this);
+//            screenshotLayout.SetOnClickListener(this);
+//        }
 
 
 
-        /// <summary>
-        /// 寮�閿�
-        /// </summary>
-        private void Unlock()
-        {
-            //
-            CurtActivity.Unlock();
-            UpdataUnlockState();
-        }
+//        /// <summary>
+//        /// 寮�閿�
+//        /// </summary>
+//        private void Unlock()
+//        {
+//            //
+//            CurtActivity.Unlock();
+//            UpdataUnlockState();
+//        }
 
-        /// <summary>
-        /// 鏇存柊寮�閿佹寜閽姸鎬�
-        /// </summary>
-        private void UpdataUnlockState()
-        {
-            try
-            {
-                //寮�閿佹垚鍔燂紝15绉掑唴涓嶇粰鍐嶇偣鍑绘寜閽�
-                unlockLayout.Enabled = false;
-                if (thread != null)
-                {
-                    try
-                    {
-                        thread.Interrupt();
-                    }
-                    catch { }
-                    thread = null;
-                }
+//        /// <summary>
+//        /// 鏇存柊寮�閿佹寜閽姸鎬�
+//        /// </summary>
+//        private void UpdataUnlockState()
+//        {
+//            try
+//            {
+//                //寮�閿佹垚鍔燂紝15绉掑唴涓嶇粰鍐嶇偣鍑绘寜閽�
+//                unlockLayout.Enabled = false;
+//                if (thread != null)
+//                {
+//                    try
+//                    {
+//                        thread.Interrupt();
+//                    }
+//                    catch { }
+//                    thread = null;
+//                }
 
-                thread = new Thread(() =>
-                {
-                    try
-                    {
-                        Thread.Sleep(15 * 1000);
+//                thread = new Thread(() =>
+//                {
+//                    try
+//                    {
+//                        Thread.Sleep(15 * 1000);
 
-                        Activity.RunOnUiThread(() =>
-                        {
-                            if (unlockLayout != null)
-                                unlockLayout.Enabled = true;
-                        });
-                    }
-                    catch { }
-                });
+//                        Activity.RunOnUiThread(() =>
+//                        {
+//                            if (unlockLayout != null)
+//                                unlockLayout.Enabled = true;
+//                        });
+//                    }
+//                    catch { }
+//                });
 
-                thread.Start();
-            }
-            catch { }
-        }
+//                thread.Start();
+//            }
+//            catch { }
+//        }
 
-        public void OnClick(View v)
-        {
-            //
-            if (v.Equals(unlockLayout))
-            {
-                //寮�閿�
-                Unlock();
-            }
-            else if (v.Equals(screenshotLayout))
-            {
-                //鏈夎棰戣繃鏉ュ彲璋冪敤姝ゆ帴鍙h繘琛屾媿鐓�
-                screenImage.Selected = true;
-                SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
-                string time = format.Format(new Date(SystemClock.CurrentThreadTimeMillis()));
-                string ss = Android.OS.Environment.ExternalStorageDirectory.Path + "/DCIM/HDL";
-                string path = ss + "/" + time + ".jpg";
-                CurtActivity.SnapShot(path);
-            }
-        }
+//        public void OnClick(View v)
+//        {
+//            //
+//            if (v.Equals(unlockLayout))
+//            {
+//                //寮�閿�
+//                Unlock();
+//            }
+//            else if (v.Equals(screenshotLayout))
+//            {
+//                //鏈夎棰戣繃鏉ュ彲璋冪敤姝ゆ帴鍙h繘琛屾媿鐓�
+//                screenImage.Selected = true;
+//                SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
+//                string time = format.Format(new Date(SystemClock.CurrentThreadTimeMillis()));
+//                string ss = Android.OS.Environment.ExternalStorageDirectory.Path + "/DCIM/HDL";
+//                string path = ss + "/" + time + ".jpg";
+//                CurtActivity.SnapShot(path);
+//            }
+//        }
 
-        public override void OnDestroy()
-        {
-            base.OnDestroy();
+//        public override void OnDestroy()
+//        {
+//            base.OnDestroy();
 
-            if (thread != null)
-            {
-                try
-                {
-                    thread.Interrupt();
-                }
-                catch { }
-                thread = null;
-            }
-        }
-    }
-}
\ No newline at end of file
+//            if (thread != null)
+//            {
+//                try
+//                {
+//                    thread.Interrupt();
+//                }
+//                catch { }
+//                thread = null;
+//            }
+//        }
+//    }
+//}
\ No newline at end of file

--
Gitblit v1.8.0