using System;
//using Android.Content;
using Shared;
namespace HDL_ON.UI
{
public partial class UserPage
{
///
/// 加载事件
///
void LoadEventList()
{
LoadEvent_NavigationSelection();
LoadEvent_RefreshData();
}
///
/// 刷新住宅数据
///
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();
// }
//};
}
///
/// 加载导航栏点击事件
///
void LoadEvent_NavigationSelection()
{
EventHandler collectionEvent = (sender, e) => {
ChooseCollection();
};
collectionView.MouseUpEventHandler = collectionEvent;
btnCollectionIcon.MouseUpEventHandler = collectionEvent;
btnCollectionText.MouseUpEventHandler = collectionEvent;
EventHandler ClassificationEvent = (sender, e) => {
ChooseClassification();
};
classificationView.MouseUpEventHandler = ClassificationEvent;
btnClassificationIcon.MouseUpEventHandler = ClassificationEvent;
btnClassificationText.MouseUpEventHandler = ClassificationEvent;
EventHandler IntellectualizationEvent = (sender, e) => {
ChooseIntellectualization();
};
intellectualizationView.MouseUpEventHandler = IntellectualizationEvent;
btnIntellectualizationIcon.MouseUpEventHandler = IntellectualizationEvent;
btnIntellectualizationText.MouseUpEventHandler = IntellectualizationEvent;
EventHandler PersonalCenterEvent = (sender, e) => {
ChoosePersonalCenter();
};
personalCenterView.MouseUpEventHandler = PersonalCenterEvent;
btnPersonalCenterIcon.MouseUpEventHandler = PersonalCenterEvent;
btnPersonalCenterText.MouseUpEventHandler = PersonalCenterEvent;
}
}
}