FModel 3.0.3

This commit is contained in:
iAmAsval 2020-01-22 21:11:08 +01:00
parent 16e39233a6
commit 216d106014
4 changed files with 16 additions and 12 deletions

View File

@ -58,7 +58,8 @@
<LangVersion>7.1</LangVersion>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Logo.ico</ApplicationIcon>
<ApplicationIcon>
</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<StartupObject>FModel.Program</StartupObject>

View File

@ -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;

View File

@ -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")]

View File

@ -14,7 +14,7 @@
alt="Releases">
</a>
<a href="https://github.com/iAmAsval/FModel/releases/latest">
<img src="https://img.shields.io/github/downloads/iAmAsval/FModel/latest/total.svg?label=v3.0.2%20Downloads"
<img src="https://img.shields.io/github/downloads/iAmAsval/FModel/latest/total.svg?label=v3.0.3%20Downloads"
alt="Downloads">
</a>
<a href="https://twitter.com/AsvalFN"><img src="https://img.shields.io/badge/Twitter-@AsvalFN-1da1f2.svg?logo=twitter"></a>