21 lines
665 B
C#
21 lines
665 B
C#
|
using System;
|
||
|
using uMVVM.Sources.Infrastructure;
|
||
|
|
||
|
namespace Game.MVVM.Model
|
||
|
{
|
||
|
public class MenuItemViewModel : ViewModelBase
|
||
|
{
|
||
|
public readonly BindableProperty<long> MenuId = new BindableProperty<long>();
|
||
|
public readonly BindableProperty<string> MenuName = new BindableProperty<string>();
|
||
|
public readonly BindableProperty<string> MenuIcon = new BindableProperty<string>();
|
||
|
|
||
|
public Action<string, string> OnClick;
|
||
|
|
||
|
public void InitData(MenuItem item)
|
||
|
{
|
||
|
this.MenuId.Value = item.id;
|
||
|
this.MenuName.Value = item.menuName;
|
||
|
this.MenuIcon.Value = item.menuIcon;
|
||
|
}
|
||
|
}
|
||
|
}
|