mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-23 19:28:27 +00:00
Added IFileInvoker
This commit is contained in:
parent
dc9db3b8ef
commit
052760ecf1
@ -43,6 +43,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Scripting\DefaultFileWriter.cs" />
|
<Compile Include="Scripting\DefaultFileWriter.cs" />
|
||||||
|
<Compile Include="Scripting\IFileInvoker.cs" />
|
||||||
<Compile Include="Scripting\IFileWriter.cs" />
|
<Compile Include="Scripting\IFileWriter.cs" />
|
||||||
<Compile Include="Ids.cs" />
|
<Compile Include="Ids.cs" />
|
||||||
<Compile Include="Scripting\StatementBuilder.cs" />
|
<Compile Include="Scripting\StatementBuilder.cs" />
|
||||||
|
|||||||
21
OSCADSharp/OSCADSharp/Scripting/IFileInvoker.cs
Normal file
21
OSCADSharp/OSCADSharp/Scripting/IFileInvoker.cs
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace OSCADSharp.Scripting
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Opens a file
|
||||||
|
/// </summary>
|
||||||
|
public interface IFileInvoker
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Opens the specified file
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="path">Path to the file to open</param>
|
||||||
|
/// <param name="arguments">Command-line arguments to pass in</param>
|
||||||
|
void Invoke(string path, string arguments = null);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user