Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
table drawing regression fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DanWBR committed Feb 28, 2018
1 parent f1f59a2 commit 86b7876
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions DWSIM.Drawing.SkiaSharp/GraphicObjects/Base/GraphicObject.vb
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ Namespace GraphicObjects
Y = Value.Y
End Sub

Public Overridable Sub SetPosition(ByVal X0 As Integer, ByVal Y0 As Integer)
X = X0
Y = Y0
End Sub

Public Overridable Sub SetSize(ByVal Value As SKSize)
Width = Value.Width
Height = Value.Height
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Namespace GraphicObjects.Tables

Public Sub New(ByRef owner As ISimulationObject, ByVal graphicPosition As Point)
Me.New(owner)
'Me.SetPosition(graphicPosition.ToSKPoint)
Me.SetPosition(graphicPosition.X, graphicPosition.Y)
End Sub

Public Sub New(ByRef owner As ISimulationObject, ByVal posX As Integer, ByVal posY As Integer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Namespace GraphicObjects.Tables

Public Sub New(ByVal graphicPosition As Point)
Me.New()
'Me.SetPosition(graphicPosition.ToSKPoint)
Me.SetPosition(graphicPosition.X, graphicPosition.Y)
End Sub

Public Sub New(ByVal posX As Integer, ByVal posY As Integer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Namespace GraphicObjects.Tables

Public Sub New(ByVal graphicPosition As Point)
Me.New()
'Me.SetPosition(graphicPosition.ToSKPoint)
Me.SetPosition(graphicPosition.X, graphicPosition.Y)
End Sub

Public Sub New(ByVal posX As Integer, ByVal posY As Integer)
Expand Down
1 change: 1 addition & 0 deletions DWSIM.UI.Desktop/DWSIM.UI.Desktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@

xcopy "$(SolutionDir)PlatformFiles\Common\*" "$(TargetDir)" /E /Y /F /D
xcopy "$(SolutionDir)DWSIM\bin\Debug\plugins\*" "$(TargetDir)\plugins\" /E /Y /F /D
xcopy "$(SolutionDir)PlatformFiles\Windows\CoolProp.dll" "$(TargetDir)" /E /Y /F /D

) else if "$(PlatformName)" == "x64" (

Expand Down
1 change: 1 addition & 0 deletions DWSIM/DWSIM.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -2406,6 +2406,7 @@
<PostBuildEvent>if "$(ConfigurationName)"=="Debug" (

xcopy "$(SolutionDir)PlatformFiles\Common\*" "$(TargetDir)" /E /Y /F /D
xcopy "$(SolutionDir)PlatformFiles\Windows\CoolProp.dll" "$(TargetDir)" /E /Y /F /D

) else if "$(PlatformName)"=="x64" (

Expand Down

0 comments on commit 86b7876

Please sign in to comment.