Browse Source

zhao:代码优化

tags/录制修改前
耀 4 years ago
parent
commit
14b8d4502e

+ 2
- 2
Common/system/KeyboardHookCommon.cs View File

156
 
156
 
157
             }
157
             }
158
         }
158
         }
159
-        //接收SetWindowsHookEx返回值  
160
-        private static int _hHookValue = 0;
159
+        ////接收SetWindowsHookEx返回值  
160
+        //private static int _hHookValue = 0;
161
         private int KeyboardHookProc(int nCode, int wParam, IntPtr lParam)
161
         private int KeyboardHookProc(int nCode, int wParam, IntPtr lParam)
162
         {
162
         {
163
             // 侦听键盘事件
163
             // 侦听键盘事件

+ 1
- 2
XHWK.WKTool/CountdownWindow.xaml.cs View File

21
         /// <summary>
21
         /// <summary>
22
         /// 计时器
22
         /// 计时器
23
         /// </summary>
23
         /// </summary>
24
-        private System.Timers.Timer timer;
25
         private int ImgNum = 21;
24
         private int ImgNum = 21;
26
         public void Initialize(bool ShowlblShortcut = false, int changeTime = 2100)
25
         public void Initialize(bool ShowlblShortcut = false, int changeTime = 2100)
27
         {
26
         {
84
             }
83
             }
85
             else
84
             else
86
             {
85
             {
87
-                timer.Enabled = false;
86
+                //timer.Enabled = false;
88
                 Dispatcher.Invoke(
87
                 Dispatcher.Invoke(
89
                   DispatcherPriority.Send,
88
                   DispatcherPriority.Send,
90
                   new Action(() =>
89
                   new Action(() =>

+ 2
- 2
XHWK.WKTool/FileDirectoryWindow.xaml.cs View File

49
         public void Initialize()
49
         public void Initialize()
50
         {
50
         {
51
             APP.myloading.Show();
51
             APP.myloading.Show();
52
-            MouseNumber = 0;
52
+            //MouseNumber = 0;
53
             IsModify = false;
53
             IsModify = false;
54
             //加载视频列表
54
             //加载视频列表
55
             LoadingVideoList();
55
             LoadingVideoList();
360
             }
360
             }
361
         }
361
         }
362
 
362
 
363
-        private int MouseNumber = 0;
363
+        //private int MouseNumber = 0;
364
         /// <summary>
364
         /// <summary>
365
         /// 鼠标按下
365
         /// 鼠标按下
366
         /// </summary>
366
         /// </summary>

+ 9
- 9
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs View File

48
         //声明一个 DrawingAttributes 类型的变量  
48
         //声明一个 DrawingAttributes 类型的变量  
49
         private DrawingAttributes drawingAttributes;
49
         private DrawingAttributes drawingAttributes;
50
         private Model_Video VideoInfo = null;
50
         private Model_Video VideoInfo = null;
51
-        //定义事件
52
-        public event ChangeTextHandler ChangeTextEvent;
51
+        ////定义事件
52
+        //public event ChangeTextHandler ChangeTextEvent;
53
         //定义委托
53
         //定义委托
54
         public delegate void ChangeTextHandler(string text);
54
         public delegate void ChangeTextHandler(string text);
55
         //定义委托
55
         //定义委托
56
-        public delegate void ChangeTextHandlers(string text, int i); 
56
+        public delegate void ChangeTextHandlers(string text, int i);
57
 
57
 
58
         /// <summary>
58
         /// <summary>
59
         /// 图片
59
         /// 图片
1483
                 LogHelper.WriteErrLog("【加载视频列表】(LoadingVideoList)" + ex.Message, ex);
1483
                 LogHelper.WriteErrLog("【加载视频列表】(LoadingVideoList)" + ex.Message, ex);
1484
             }
1484
             }
1485
         }
1485
         }
1486
-        //定义事件
1487
-        public event ChangeTextHandler ChangeTextEvents;
1486
+        ////定义事件
1487
+        //public event ChangeTextHandler ChangeTextEvents;
1488
         /// <summary>
1488
         /// <summary>
1489
         /// 上传
1489
         /// 上传
1490
         /// </summary>
1490
         /// </summary>
3317
         /// </summary>
3317
         /// </summary>
3318
         private const int A4_HEIGHT = 7920;
3318
         private const int A4_HEIGHT = 7920;
3319
 
3319
 
3320
-        /// <summary>
3321
-        /// 画板
3322
-        /// </summary>
3323
-        private Graphics graphics;
3320
+        ///// <summary>
3321
+        ///// 画板
3322
+        ///// </summary>
3323
+        //private Graphics graphics;
3324
 
3324
 
3325
         /// <summary>
3325
         /// <summary>
3326
         /// 笔画坐标数组
3326
         /// 笔画坐标数组

Loading…
Cancel
Save