- 新增NavigationType枚举定义导航类型 - 新增NavigationParameter类用于传递导航参数 - 重构INavigationService和INavigatable接口 - 更新NavigationService实现以支持新的导航方式 - 更新DeviceDetailViewModel, DevicesViewModel, VariableHistoryViewModel, VariableTableViewModel, MqttsViewModel等 - 使ViewModelBase实现INavigatable接口 - 更新MainView中的菜单选择导航逻辑 - 优化VariableHistoryView界面布局,添加返回变量表按钮
22 lines
477 B
C#
22 lines
477 B
C#
using DMS.Core.Enums;
|
|
|
|
namespace DMS.Core.Models;
|
|
|
|
public class NavigationParameter
|
|
{
|
|
|
|
public string TargetViewKey { get; set; }
|
|
|
|
public NavigationType TargetType { get; set; }
|
|
|
|
public int TargetId { get; set; }
|
|
|
|
public NavigationParameter(string targetViewKey, int targetId=0,NavigationType targetType=NavigationType.None )
|
|
{
|
|
TargetViewKey = targetViewKey;
|
|
TargetType = targetType;
|
|
TargetId = targetId;
|
|
}
|
|
|
|
|
|
} |