diff --git a/FModel/FModel.csproj b/FModel/FModel.csproj index 3b15145c..40d90b72 100644 --- a/FModel/FModel.csproj +++ b/FModel/FModel.csproj @@ -58,7 +58,8 @@ 7.1 - Logo.ico + + FModel.Program diff --git a/FModel/Methods/Utilities/UIUtility.cs b/FModel/Methods/Utilities/UIUtility.cs index 6a375423..92f05b0f 100644 --- a/FModel/Methods/Utilities/UIUtility.cs +++ b/FModel/Methods/Utilities/UIUtility.cs @@ -79,8 +79,10 @@ namespace FModel.Methods.Utilities FWindow.FMain.Dispatcher.InvokeAsync(() => { BrushConverter bc = new BrushConverter(); - TextRange tr = new TextRange(FWindow.FMain.ConsoleBox_Main.Document.ContentEnd, FWindow.FMain.ConsoleBox_Main.Document.ContentEnd); - tr.Text = _newLine ? $"{_textToDisplay}{Environment.NewLine}" : _textToDisplay; + TextRange tr = new TextRange(FWindow.FMain.ConsoleBox_Main.Document.ContentEnd, FWindow.FMain.ConsoleBox_Main.Document.ContentEnd) + { + Text = _newLine ? $"{_textToDisplay}{Environment.NewLine}" : _textToDisplay + }; try { tr.ApplyPropertyValue(TextElement.ForegroundProperty, @@ -119,10 +121,12 @@ namespace FModel.Methods.Utilities public static FindReplaceMgr SetFindReplaceDiag() { - FindReplaceMgr FRM = new FindReplaceMgr(); - FRM.CurrentEditor = new TextEditorAdapter(FWindow.FMain.AssetPropertiesBox_Main); - FRM.ShowSearchIn = false; - FRM.OwnerWindow = FWindow.FMain; + FindReplaceMgr FRM = new FindReplaceMgr + { + CurrentEditor = new TextEditorAdapter(FWindow.FMain.AssetPropertiesBox_Main), + ShowSearchIn = false, + OwnerWindow = FWindow.FMain + }; return FRM; } @@ -188,9 +192,8 @@ namespace FModel.Methods.Utilities } else if (!string.IsNullOrEmpty(childName)) { - FrameworkElement frameworkElement = child as FrameworkElement; // If the child's name is set for search - if (frameworkElement != null && frameworkElement.Name == childName) + if (child is FrameworkElement frameworkElement && frameworkElement.Name == childName) { // if the child's name is of the request name foundChild = (T)child; diff --git a/FModel/Properties/AssemblyInfo.cs b/FModel/Properties/AssemblyInfo.cs index e2426a78..1f444ea3 100644 --- a/FModel/Properties/AssemblyInfo.cs +++ b/FModel/Properties/AssemblyInfo.cs @@ -51,5 +51,5 @@ using System.Windows; // Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut // en utilisant '*', comme indiqué ci-dessous : // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("3.0.2.0")] -[assembly: AssemblyFileVersion("3.0.2.0")] +[assembly: AssemblyVersion("3.0.3.0")] +[assembly: AssemblyFileVersion("3.0.3.0")] diff --git a/README.md b/README.md index 53accda0..a3322170 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ alt="Releases"> - Downloads