From 6bbf25a63e3c80fed5bac4719f96ef7174367f51 Mon Sep 17 00:00:00 2001 From: TheJoKlLa Date: Thu, 2 Jun 2022 01:38:14 +0200 Subject: [PATCH] Added Strings to TextResource --- .editorconfig | 3 + Borepin/Borepin/App.xaml.cs | 1 + .../Borepin/Model/ConnectionDataVisualize.cs | 3 +- .../Page/AddServerProcess/AuthPlainPage.xaml | 7 +- .../AddServerProcess/ChooseAuthTypePage.xaml | 13 +- .../AddServerProcess/SelectServerPage.xaml | 7 +- Borepin/Borepin/Page/MachineListPage.xaml | 5 +- Borepin/Borepin/Page/MachinePage.xaml | 15 +- Borepin/Borepin/Page/MainPage.xaml | 11 +- Borepin/Borepin/Page/ScanPage.xaml | 3 +- Borepin/Borepin/Page/ServerListPage.xaml | 7 +- Borepin/Borepin/Page/ServerPage.xaml | 11 +- .../Page/SetUpProcess/WelcomePage.xaml | 8 +- Borepin/Borepin/Page/StartPage.xaml | 5 +- Borepin/Borepin/PageModel/ScanPageModel.cs | 1 - Borepin/Borepin/PageModel/ServerPageModel.cs | 3 +- .../Resources/Text/TextResource.Designer.cs | 340 +++++++++++++++++- .../Borepin/Resources/Text/TextResource.resx | 116 +++++- 18 files changed, 502 insertions(+), 57 deletions(-) diff --git a/.editorconfig b/.editorconfig index 55aff3e..29e791c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,3 +3,6 @@ # MA0003: Add argument name to improve readability dotnet_diagnostic.MA0003.severity = none csharp_style_prefer_switch_expression=false:suggestion + +# MA0051: Method is too long +dotnet_diagnostic.MA0051.severity = silent diff --git a/Borepin/Borepin/App.xaml.cs b/Borepin/Borepin/App.xaml.cs index 07201ec..204827a 100644 --- a/Borepin/Borepin/App.xaml.cs +++ b/Borepin/Borepin/App.xaml.cs @@ -12,6 +12,7 @@ using Borepin.PageModel.AddServerProcess; using System; using Borepin.Service.Storage; using NLog; +using System.Resources; namespace Borepin { diff --git a/Borepin/Borepin/Model/ConnectionDataVisualize.cs b/Borepin/Borepin/Model/ConnectionDataVisualize.cs index 6692a61..2654090 100644 --- a/Borepin/Borepin/Model/ConnectionDataVisualize.cs +++ b/Borepin/Borepin/Model/ConnectionDataVisualize.cs @@ -19,9 +19,8 @@ namespace Borepin.Model #endregion #region Methods - public async void LoadData() + public void LoadData() { - Host = _ConnectionData.Host.Host; Port = _ConnectionData.Host.Port; Username = _ConnectionData.Username; diff --git a/Borepin/Borepin/Page/AddServerProcess/AuthPlainPage.xaml b/Borepin/Borepin/Page/AddServerProcess/AuthPlainPage.xaml index 9c4b58a..010fd30 100644 --- a/Borepin/Borepin/Page/AddServerProcess/AuthPlainPage.xaml +++ b/Borepin/Borepin/Page/AddServerProcess/AuthPlainPage.xaml @@ -3,6 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Borepin.Page.AddServerProcess.AuthPlainPage" xmlns:converters="clr-namespace:Borepin.Converter" + xmlns:resource_text="clr-namespace:Borepin.Resources.Text" Title="Connect to Server"> @@ -15,13 +16,13 @@ - + - + -