wxr
2020-09-10 af1cb3ecd0f4b0589e00b28f7f9edccf39e6e12b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using System;
using Shared;
 
namespace HDL_ON.UI
{
    public partial class UserPage
    {
        /// <summary>
        /// 加载事件
        /// </summary>
        void LoadEventList()
        {
            LoadEvent_NavigationSelection();
        }
        /// <summary>
        /// 加载导航栏点击事件
        /// </summary>
        void LoadEvent_NavigationSelection()
        {
            EventHandler<MouseEventArgs> collectionEvent = (sender, e) => {
                ChooseCollection();
            };
            collectionView.MouseUpEventHandler = collectionEvent;
            btnCollectionIcon.MouseUpEventHandler = collectionEvent;
            btnCollectionText.MouseUpEventHandler = collectionEvent;
 
            EventHandler<MouseEventArgs> ClassificationEvent = (sender, e) => {
                ChooseClassification();
            };
            classificationView.MouseUpEventHandler = ClassificationEvent;
            btnClassificationIcon.MouseUpEventHandler = ClassificationEvent;
            btnClassificationText.MouseUpEventHandler = ClassificationEvent;
 
            EventHandler<MouseEventArgs> IntellectualizationEvent = (sender, e) => {
                ChooseIntellectualization();
            };
            intellectualizationView.MouseUpEventHandler = IntellectualizationEvent;
            btnIntellectualizationIcon.MouseUpEventHandler = IntellectualizationEvent;
            btnIntellectualizationText.MouseUpEventHandler = IntellectualizationEvent;
 
 
            EventHandler<MouseEventArgs> PersonalCenterEvent = (sender, e) => {
                ChoosePersonalCenter();
            };
            personalCenterView.MouseUpEventHandler = PersonalCenterEvent;
            btnPersonalCenterIcon.MouseUpEventHandler = PersonalCenterEvent;
            btnPersonalCenterText.MouseUpEventHandler = PersonalCenterEvent;
        }
 
 
    }
}