mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-25 20:08:28 +00:00
+ Moved Binding-related classes to Bindings folder
This commit is contained in:
parent
d80e2c036a
commit
f4ff157a63
@ -1,10 +1,11 @@
|
|||||||
using System;
|
using OSCADSharp.Scripting;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace OSCADSharp.Scripting
|
namespace OSCADSharp.Bindings
|
||||||
{
|
{
|
||||||
internal class Binding
|
internal class Binding
|
||||||
{
|
{
|
||||||
@ -1,11 +1,12 @@
|
|||||||
using System;
|
using OSCADSharp.Scripting;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace OSCADSharp.Scripting
|
namespace OSCADSharp.Bindings
|
||||||
{
|
{
|
||||||
internal class Bindings
|
internal class Bindings
|
||||||
{
|
{
|
||||||
@ -1,10 +1,11 @@
|
|||||||
using System;
|
using OSCADSharp.Scripting;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace OSCADSharp.Scripting
|
namespace OSCADSharp.Bindings
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An object whose properties can be bound to variables
|
/// An object whose properties can be bound to variables
|
||||||
@ -49,9 +49,9 @@
|
|||||||
<Compile Include="Files\IFileWriter.cs" />
|
<Compile Include="Files\IFileWriter.cs" />
|
||||||
<Compile Include="Settings\Ids.cs" />
|
<Compile Include="Settings\Ids.cs" />
|
||||||
<Compile Include="Settings\OpenSCADPathFinder.cs" />
|
<Compile Include="Settings\OpenSCADPathFinder.cs" />
|
||||||
<Compile Include="Scripting\Binding.cs" />
|
<Compile Include="Bindings\Binding.cs" />
|
||||||
<Compile Include="Scripting\Bindings.cs" />
|
<Compile Include="Bindings\Bindings.cs" />
|
||||||
<Compile Include="Scripting\IBindable.cs" />
|
<Compile Include="Bindings\IBindable.cs" />
|
||||||
<Compile Include="Scripting\SingleStatementObject.cs" />
|
<Compile Include="Scripting\SingleStatementObject.cs" />
|
||||||
<Compile Include="Scripting\StatementBuilder.cs" />
|
<Compile Include="Scripting\StatementBuilder.cs" />
|
||||||
<Compile Include="Scripting\Variable.cs" />
|
<Compile Include="Scripting\Variable.cs" />
|
||||||
|
|||||||
@ -13,13 +13,13 @@ namespace OSCADSharp.Scripting
|
|||||||
internal class StatementBuilder
|
internal class StatementBuilder
|
||||||
{
|
{
|
||||||
private StringBuilder SB { get; set; } = new StringBuilder();
|
private StringBuilder SB { get; set; } = new StringBuilder();
|
||||||
private Bindings bindings = null;
|
private Bindings.Bindings bindings = null;
|
||||||
|
|
||||||
internal StatementBuilder()
|
internal StatementBuilder()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
internal StatementBuilder(Bindings bindings)
|
internal StatementBuilder(Bindings.Bindings bindings)
|
||||||
{
|
{
|
||||||
this.bindings = bindings;
|
this.bindings = bindings;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,6 +7,7 @@ using OSCADSharp.Spatial;
|
|||||||
using OSCADSharp.Scripting;
|
using OSCADSharp.Scripting;
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
using OSCADSharp.Bindings;
|
||||||
|
|
||||||
namespace OSCADSharp.Solids
|
namespace OSCADSharp.Solids
|
||||||
{
|
{
|
||||||
@ -130,7 +131,7 @@ namespace OSCADSharp.Solids
|
|||||||
new Vector3(this.Radius, this.Radius, this.Radius));
|
new Vector3(this.Radius, this.Radius, this.Radius));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Bindings bindings = new Bindings(new Dictionary<string, string>()
|
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>()
|
||||||
{
|
{
|
||||||
{ "radius", "r" },
|
{ "radius", "r" },
|
||||||
{ "minimumangle", "$fa" },
|
{ "minimumangle", "$fa" },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user