using System;
using HDL_ON.Entity;
namespace HDL_ON.UI
{
public partial class ACPage
{
void LoadEventList()
{
LoadCollectionEvent();
LoadEvent_ModeChange();
LoadEvent_TempChange();
//回退刷新信息事件
actionRefresh = () => {
btnFunctionName.Text = btnFunctionName_Out.Text = function.name;
btnFromFloor_Out.Text = btnFromFoorAndRoom.Text = function.GetRoomListName();
};
}
///
/// 收藏功能按钮事件
///
void LoadCollectionEvent()
{
btnCollection.MouseUpEventHandler += (sender, e) => {
btnCollection.IsSelected = function.collection = btnCollection_Out.IsSelected = !btnCollection.IsSelected;
DB_ResidenceData.residenceData.SaveResidenceData();
};
}
///
/// 温度改变模式
///
void LoadEvent_TempChange()
{
btnMinus.MouseUpEventHandler = (sender, e) => {
//function as AC
};
}
///
/// 控制模式事件
///
void LoadEvent_ModeChange()
{
}
}
}