Something went wrong. Try again.
Modular scanner/radio client and multi-broadcast server. uniscan.dexrn.me
Something went wrong. Try again.
1234567891011121314151617181920212223using System;using System.Windows.Input;using CommunityToolkit.Mvvm.Input;using DialogHostAvalonia;using Shiki.Common.Identity;using Shiki.Internationalization.Component;using UniScan.Client.App.Views.ViewModel;
namespace UniScan.Client.App.Views.Global.Dialog;
public partial class DialogViewModel : ViewModelBase{ public static readonly ICommand DefaultConfirmCommand = new RelayCommand(() => { DialogHost.Close("MainDialogHost"); }, () => true); public ITextComponent TitleText { get; set; } = new TranslatableTextComponent(Identifier.CreateInstance("UniScan:client/i18n/view/dialog/default_title")); public ITextComponent ContentText { get; set; } = new TranslatableTextComponent(Identifier.CreateInstance("UniScan:client/i18n/view/dialog/default_content"));
public ICommand ConfirmCommand { get; set; } = DefaultConfirmCommand;}