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;
|
}
|
|
|
}
|
}
|