-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from IronyProject/roman_fwk_upgrade
Upgrading to .net 8;
- Loading branch information
Showing
48 changed files
with
2,724 additions
and
4,067 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
*.bak | ||
*.orig | ||
*.nupkg | ||
*.snupkg | ||
/**/bin | ||
/**/obj | ||
/.vs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Version>1.5.0</Version> | ||
<AssemblyVersion>1.5.0.0</AssemblyVersion> | ||
<FileVersion>1.5.0.0</FileVersion> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
|
||
<AssemblyName>$(MSBuildProjectName)</AssemblyName> | ||
<RootNamespace>$(MSBuildProjectName)</RootNamespace> | ||
<LangVersion>10.0</LangVersion> | ||
<NoWarn>1701;1702;1591</NoWarn> | ||
<PackageProjectUrl>https://github.com/IronyProject/Irony</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/IronyProject/Irony</RepositoryUrl> | ||
<Copyright>Irony Project</Copyright> | ||
<Authors>Roman Ivantsov</Authors> | ||
|
||
<RunAnalyzersDuringLiveAnalysis>False</RunAnalyzersDuringLiveAnalysis> | ||
<RunAnalyzersDuringBuild>False</RunAnalyzersDuringBuild> | ||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> | ||
|
||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,35 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net472</TargetFramework> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>net8.0-windows</TargetFramework> | ||
<UseWindowsForms>true</UseWindowsForms> | ||
<RootNamespace>Irony.GrammarExplorer</RootNamespace> | ||
<AssemblyName>Irony.GrammarExplorer</AssemblyName> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<NoWarn>1701;1702;CA1416</NoWarn> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||
<NoWarn>1701;1702;CA1416</NoWarn> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Irony.WinForms\035.Irony.WinForms.csproj" /> | ||
<ProjectReference Include="..\Irony\010.Irony.csproj" /> | ||
<ProjectReference Include="..\Irony.Interpreter\015.Irony.Interpreter.csproj" /> | ||
<ProjectReference Include="..\Irony.Samples\020.Irony.Samples.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Reference Include="System.Windows.Forms" /> | ||
<Compile Update="ConsoleTextBox.cs"> | ||
<SubType>UserControl</SubType> | ||
</Compile> | ||
<Compile Update="fmShowException.cs"> | ||
<SubType>Form</SubType> | ||
</Compile> | ||
</ItemGroup> | ||
|
||
</Project> |
76 changes: 38 additions & 38 deletions
76
Irony.WinForms/ConsoleTextBox.Designer.cs → ...rammarExplorer/ConsoleTextBox.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
using System; | ||
using System.ComponentModel; | ||
using System.Drawing; | ||
using System.Windows.Forms; | ||
using Irony.Interpreter; | ||
using Irony.Parsing; | ||
|
||
namespace Irony.GrammarExplorer { | ||
|
||
/// <summary> | ||
/// TextBox with for console emulation. | ||
/// Implements <see cref="IConsoleAdapter"/> interface. | ||
/// </summary> | ||
/// <remarks><see cref="IConsoleAdapter"/> implementation is thread-safe.</remarks> | ||
[ToolboxItem(true)] | ||
public partial class ConsoleTextBox : TextBox, IConsoleAdapter { | ||
private bool _canceled; | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ConsoleTextBox" /> class. | ||
/// </summary> | ||
public ConsoleTextBox() { | ||
InitializeComponent(); | ||
} | ||
|
||
|
||
protected override void OnHandleDestroyed(EventArgs e) { | ||
base.OnHandleDestroyed(e); | ||
Canceled = true; | ||
} | ||
|
||
[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] | ||
public bool Canceled { | ||
get { return _canceled; } | ||
set { | ||
_canceled = value; | ||
} | ||
} | ||
|
||
public void Write(string text) { | ||
this.Text += Environment.NewLine + text; | ||
} | ||
|
||
public void WriteLine(string text) { | ||
Write(text + Environment.NewLine); | ||
} | ||
|
||
public void SetTextStyle(ConsoleTextStyle style) { | ||
} | ||
|
||
public int Read() { | ||
throw new NotSupportedException(); | ||
} | ||
|
||
public string ReadLine() { | ||
if (!InvokeRequired) { | ||
Focus(); | ||
return Console.ReadLine(); | ||
} | ||
return Invoke(new Func<string>(Console.ReadLine)) as string; | ||
} | ||
|
||
public void SetTitle(string title) { | ||
throw new NotSupportedException(); | ||
} | ||
|
||
public string GetOutput() { | ||
return Text; | ||
} | ||
} | ||
} |
Oops, something went wrong.