Files
SteamTools/System.Application.SteamTools.Client.Desktop/UI/ViewModels/Pages/DebugPageViewModel.cs
T
2021-03-08 17:10:30 +08:00

38 lines
1.1 KiB
C#

using ReactiveUI;
using System.Application.Services;
using System.Application.UI.Resx;
using System.Collections.Generic;
using System.Linq;
namespace System.Application.UI.ViewModels
{
public class DebugPageViewModel : TabItemViewModel
{
public override string Name
{
get => "Debug";
protected set { throw new NotImplementedException(); }
}
private string _DebugString = string.Empty;
public string DebugString
{
get => _DebugString;
protected set => this.RaiseAndSetIfChanged(ref _DebugString, value);
}
public DebugPageViewModel()
{
}
public void DebugButton_Click()
{
Services.ToastService.Current.Notify("Test CommandTest CommandTest CommandTest CommandTest CommandTest Command");
DebugString += Services.ToastService.Current.Message + Environment.NewLine;
DebugString += Services.ToastService.Current.IsVisible + Environment.NewLine;
//DI.Get<IMessageWindowService>().ShowDialog("Test", "Test");
}
}
}