using System; using uMVVM.Sources.Infrastructure; namespace Game.MVVM.Model { public class GlobalTipsUIViewModel : ViewModelBase { public readonly BindableProperty TipsContent = new BindableProperty(); public readonly BindableProperty TipsSure = new BindableProperty(); public readonly BindableProperty TipsClose = new BindableProperty(); public Action OnClickSure; public Action OnClickClose; public void SetTips(string content, string btnSure = "确定", string btnClose = "关闭") { this.TipsContent.Value = content; this.TipsSure.Value = btnSure; this.TipsClose.Value = btnClose; } } }