123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using PDF_Master.CustomControl;
- using PDF_Master.Helper;
- using PDF_Master.Properties;
- using PDF_Master.Views.Dialog.ServiceDialog;
- using Prism.Commands;
- using Prism.Mvvm;
- using Prism.Regions;
- using Prism.Services.Dialogs;
- namespace PDF_Master.ViewModels.Dialog.ServiceDialog
- {
- public class UserOutingLoginViewModel : BindableBase, IDialogAware
- {
-
- public string Title => "";
- public event Action<IDialogResult> RequestClose;
-
- public void Close()
- {
- RequestClose?.Invoke(new Prism.Services.Dialogs.DialogResult(ButtonResult.Cancel));
- }
- public bool CanCloseDialog()
- {
- return true;
- }
- public void OnDialogClosed()
- {
- }
- public void OnDialogOpened(IDialogParameters parameters)
- {
- }
- #region 文案
- private string _Text_useroutinglogin = "";
- public string Text_useroutinglogin
- {
- get { return _Text_useroutinglogin; }
- set
- {
- SetProperty(ref _Text_useroutinglogin, value);
- }
- }
- private string _Text_useroutingloginmsg1 = "";
- public string Text_useroutingloginmsg1
- {
- get { return _Text_useroutingloginmsg1; }
- set
- {
- SetProperty(ref _Text_useroutingloginmsg1, value);
- }
- }
- private string _Text_useroutingloginmsg2 = "";
- public string Text_useroutingloginmsg2
- {
- get { return _Text_useroutingloginmsg2; }
- set
- {
- SetProperty(ref _Text_useroutingloginmsg2, value);
- }
- }
- private string _Text_ok = "";
- public string Text_ok
- {
- get { return _Text_ok; }
- set
- {
- SetProperty(ref _Text_ok, value);
- }
- }
- private void InitString()
- {
- Text_useroutinglogin = App.ServiceLoader.GetString("Text_useroutinglogin");
- Text_useroutingloginmsg1 = App.ServiceLoader.GetString("Text_useroutingloginmsg1");
- Text_useroutingloginmsg2 = App.ServiceLoader.GetString("Text_useroutingloginmsg2");
- Text_ok = App.ServiceLoader.GetString("Text_ok");
- }
- #endregion
- public UserOutingLoginViewModel(IRegionManager regionManager, IDialogService dialogService)
- {
- InitString();
- }
- }
- }
|