xm
2021-12-01 6d73bf6e816570291865674bef8bce8972e4de3f
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
using System;
//using Android.Content;
using Shared;
 
namespace HDL_ON.UI
{
    public partial class UserPage
    {
        /// <summary>
        /// 加载事件
        /// </summary>
        void LoadEventList()
        {
            LoadEvent_NavigationSelection();
            LoadEvent_RefreshData();
        }
 
        /// <summary>
        /// 刷新住宅数据
        /// </summary>
        void LoadEvent_RefreshData()
        {
            //ContextView.BeginHeaderRefreshingAction = () => {
            //    if (CurAnimationEffect == 0)
            //    {
            //        Common.ApiUtlis.Ins.DownloadData();
            //        ContextView.RemoveAll();
            //        var homePage = new HomePage();
            //        ContextView.AddChidren(homePage);
            //        homePage.LoadPage();
            //        ContextView.EndHeaderRefreshing();
            //    }
            //};
        }
 
        /// <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;
        }
        
    }
}