mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-11 13:38:33 +00:00
Shifted a number of classes to DataBinding folder/namespace
This commit is contained in:
parent
cbd59b48bd
commit
78990782b9
@ -1,4 +1,5 @@
|
||||
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.Utility;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System.Linq;
|
||||
using OSCADSharp.DataBinding;
|
||||
|
||||
namespace OSCADSharp.UnitTests
|
||||
{
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Moq;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.IO;
|
||||
using OSCADSharp.Utility;
|
||||
using System;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Utility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@ -25,7 +26,7 @@ namespace OSCADSharp.UnitTests.Scripting
|
||||
var compound = new Variable("x", 5) / 12;
|
||||
|
||||
string type = compound.GetType().ToString();
|
||||
Assert.AreEqual("OSCADSharp.CompoundVariable", type);
|
||||
Assert.AreEqual("OSCADSharp.DataBinding.CompoundVariable", type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Moq;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.IO;
|
||||
using OSCADSharp.Utility;
|
||||
using System;
|
||||
|
||||
@ -4,6 +4,7 @@ using System.Collections.Generic;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Utility;
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.DataBinding;
|
||||
|
||||
namespace OSCADSharp.UnitTests
|
||||
{
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.Utility;
|
||||
using System;
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Utility;
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.DataBinding;
|
||||
|
||||
namespace OSCADSharp.UnitTests
|
||||
{
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.DataBinding;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.Utility;
|
||||
using System;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp
|
||||
namespace OSCADSharp.DataBinding
|
||||
{
|
||||
internal class BindableBoolean : IBindable
|
||||
{
|
||||
@ -46,7 +46,7 @@ namespace OSCADSharp
|
||||
return this.bindings.Get(this.boundProperty).BoundVariable.Text;
|
||||
}
|
||||
|
||||
public BindableBoolean Clone()
|
||||
internal BindableBoolean Clone()
|
||||
{
|
||||
var clone = new BindableBoolean(this.boundProperty);
|
||||
clone.bindings = this.bindings;
|
||||
@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp
|
||||
namespace OSCADSharp.DataBinding
|
||||
{
|
||||
internal class BindableVector : Vector3, IBindable
|
||||
{
|
||||
@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp
|
||||
namespace OSCADSharp.DataBinding
|
||||
{
|
||||
internal class Binding
|
||||
{
|
||||
@ -5,7 +5,7 @@ using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp
|
||||
namespace OSCADSharp.DataBinding
|
||||
{
|
||||
internal class Bindings
|
||||
{
|
||||
@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp
|
||||
namespace OSCADSharp.DataBinding
|
||||
{
|
||||
internal class CompoundVariable : Variable
|
||||
{
|
||||
@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp
|
||||
namespace OSCADSharp.DataBinding
|
||||
{
|
||||
/// <summary>
|
||||
/// An object whose properties can be bound to variables
|
||||
@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp
|
||||
namespace OSCADSharp.DataBinding
|
||||
{
|
||||
/// <summary>
|
||||
/// A value for setting object properties in script output to
|
||||
@ -6,7 +6,7 @@ using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp
|
||||
namespace OSCADSharp.DataBinding
|
||||
{
|
||||
internal static class VariableCalculator
|
||||
{
|
||||
@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp
|
||||
namespace OSCADSharp.DataBinding
|
||||
{
|
||||
/// <summary>
|
||||
/// A collection of names/values for variables
|
||||
@ -1,4 +1,5 @@
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using OSCADSharp.IO;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.IO;
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.Utility;
|
||||
using System;
|
||||
|
||||
@ -42,9 +42,9 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="BindableBoolean.cs" />
|
||||
<Compile Include="VariableCalculator.cs" />
|
||||
<Compile Include="CompoundVariable.cs" />
|
||||
<Compile Include="DataBinding\BindableBoolean.cs" />
|
||||
<Compile Include="DataBinding\VariableCalculator.cs" />
|
||||
<Compile Include="DataBinding\CompoundVariable.cs" />
|
||||
<Compile Include="Dependencies.cs" />
|
||||
<Compile Include="IO\DefaultFileInvoker.cs" />
|
||||
<Compile Include="IO\DefaultFileWriter.cs" />
|
||||
@ -52,15 +52,15 @@
|
||||
<Compile Include="IO\IFileWriter.cs" />
|
||||
<Compile Include="Utility\Ids.cs" />
|
||||
<Compile Include="IO\OpenSCADPathFinder.cs" />
|
||||
<Compile Include="Binding.cs" />
|
||||
<Compile Include="Bindings.cs" />
|
||||
<Compile Include="IBindable.cs" />
|
||||
<Compile Include="DataBinding\Binding.cs" />
|
||||
<Compile Include="DataBinding\Bindings.cs" />
|
||||
<Compile Include="DataBinding\IBindable.cs" />
|
||||
<Compile Include="SingleStatementObject.cs" />
|
||||
<Compile Include="StatementBuilder.cs" />
|
||||
<Compile Include="Variable.cs" />
|
||||
<Compile Include="DataBinding\Variable.cs" />
|
||||
<Compile Include="IO\OutputSettings.cs" />
|
||||
<Compile Include="Utility\Inches.cs" />
|
||||
<Compile Include="BindableVector.cs" />
|
||||
<Compile Include="DataBinding\BindableVector.cs" />
|
||||
<Compile Include="Spatial\Bounds.cs" />
|
||||
<Compile Include="Spatial\Matrix.cs" />
|
||||
<Compile Include="HulledObject.cs" />
|
||||
@ -83,7 +83,7 @@
|
||||
<Compile Include="ScaledObject.cs" />
|
||||
<Compile Include="TranslatedObject.cs" />
|
||||
<Compile Include="Spatial\Vector3.cs" />
|
||||
<Compile Include="Variables.cs" />
|
||||
<Compile Include="DataBinding\Variables.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
@ -6,6 +6,7 @@ using System.Threading.Tasks;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Reflection;
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.DataBinding;
|
||||
|
||||
namespace OSCADSharp
|
||||
{
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using OSCADSharp.DataBinding;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@ -26,7 +27,7 @@ namespace OSCADSharp
|
||||
/// <param name="name">The Name of the value-pair</param>
|
||||
/// <param name="value">The value - if null this method does nothing</param>
|
||||
/// <param name="prefixWithComma">(optional) Flag indicating whether a comma should be added before the value-pair</param>
|
||||
public void AppendValuePairIfExists(string name, object value, bool prefixWithComma = false)
|
||||
internal void AppendValuePairIfExists(string name, object value, bool prefixWithComma = false)
|
||||
{
|
||||
bool useBinding = this.shouldUseBinding(name);
|
||||
|
||||
@ -60,7 +61,7 @@ namespace OSCADSharp
|
||||
/// Pass-through for StringBuilder.Append
|
||||
/// </summary>
|
||||
/// <param name="text"></param>
|
||||
public void Append(string text)
|
||||
internal void Append(string text)
|
||||
{
|
||||
SB.Append(text);
|
||||
}
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.DataBinding;
|
||||
using OSCADSharp.Spatial;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user