|
@@ -15,7 +15,7 @@ namespace PDF_Master.ViewModels.Dialog.ServiceDialog
|
|
|
{
|
|
|
|
|
|
|
|
|
-
|
|
|
+ public IRegionManager Region;
|
|
|
public string Title => "";
|
|
|
|
|
|
public event Action<IDialogResult> RequestClose;
|
|
@@ -50,10 +50,28 @@ namespace PDF_Master.ViewModels.Dialog.ServiceDialog
|
|
|
set { _TextOK = value; }
|
|
|
}
|
|
|
|
|
|
+ private string _TextCancel;
|
|
|
+ public string TextCancel
|
|
|
+ {
|
|
|
+ get { return _TextCancel; }
|
|
|
+ set { _TextCancel = value; }
|
|
|
+ }
|
|
|
|
|
|
+ private string _TextLogin;
|
|
|
+ public string TextLogin
|
|
|
+ {
|
|
|
+ get { return _TextLogin; }
|
|
|
+ set { _TextLogin = value; }
|
|
|
+ }
|
|
|
|
|
|
- #endregion
|
|
|
|
|
|
+ private string _LoginoffRegionName;
|
|
|
+ public string LoginoffRegionName
|
|
|
+ {
|
|
|
+ get { return _LoginoffRegionName; }
|
|
|
+ set { _LoginoffRegionName = value; }
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
|
|
|
|
|
|
private void InitString()
|
|
@@ -62,8 +80,9 @@ namespace PDF_Master.ViewModels.Dialog.ServiceDialog
|
|
|
TextPleaseLog = App.ServiceLoader.GetString("TextPleaseLog");
|
|
|
TextYouraccount = App.ServiceLoader.GetString("TextYouraccount");
|
|
|
TextChange = App.ServiceLoader.GetString("TextChange");
|
|
|
- TextOK = App.ServiceLoader.GetString("TextOK");
|
|
|
-
|
|
|
+ TextOK = App.ServiceLoader.GetString("Text_ok");
|
|
|
+ TextCancel = App.ServiceLoader.GetString("Text_cancel");
|
|
|
+ TextLogin = App.ServiceLoader.GetString("Text_Login");
|
|
|
}
|
|
|
|
|
|
|
|
@@ -89,10 +108,13 @@ namespace PDF_Master.ViewModels.Dialog.ServiceDialog
|
|
|
|
|
|
|
|
|
public DelegateCommand GoLoginCommand { get; set; }
|
|
|
+ public DelegateCommand GoCodeCommand { get; set; }
|
|
|
+
|
|
|
public LoginoffDialogViewModel(IRegionManager regionManager, IDialogService dialogService)
|
|
|
{
|
|
|
-
|
|
|
+ GoCodeCommand= new DelegateCommand(GoCode);
|
|
|
GoLoginCommand = new DelegateCommand(GoLogin);
|
|
|
+ LoginoffRegionName = Guid.NewGuid().ToString();
|
|
|
InitString();
|
|
|
|
|
|
}
|
|
@@ -109,5 +131,10 @@ namespace PDF_Master.ViewModels.Dialog.ServiceDialog
|
|
|
|
|
|
}
|
|
|
|
|
|
+ private void GoCode()
|
|
|
+ {
|
|
|
+ Close();
|
|
|
+ App.mainWindowViewModel.OpenLogin("Loginoff");
|
|
|
+ }
|
|
|
}
|
|
|
}
|