OmagCUT :

- modifiche per rendere più sicuro l'uso di VeinMatching.
This commit is contained in:
Dario Sassi
2017-05-03 10:29:59 +00:00
parent 113f07fee0
commit 68ba4b68e7
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -609,6 +609,8 @@ Public Class NestPageUC
End Function
Private Sub RemovePartBtn_Click(sender As Object, e As RoutedEventArgs) Handles RemovePartBtn.Click
' Se non ci sono pezzi selezionati, esco subito
If EgtGetFirstSelectedObj() = GDB_ID.NULL Then Return
' Chiedo conferma prima di procedere
Dim RemovePartWnd As EgtMsgBox = New EgtMsgBox(m_MainWindow, "", EgtMsg(MSG_EGTMSGBOX + 21), EgtMsgBox.Buttons.OK_CANCEL, EgtMsgBox.Icons.NULL)
If RemovePartWnd.m_nPressedBtn = 0 Then
+1 -1
View File
@@ -40,6 +40,7 @@ Public Class ProjectMgrUC
m_VeinMatchingWnd.Hide()
VeinMatching.m_nVeinCtx = GetVeinMatchingContext()
EgtSetCurrentContext(m_CurrProjPage.CurrentProjectScene.GetCtx())
m_VeinMatchingWnd.AdjustPosition()
End If
End Sub
@@ -382,7 +383,6 @@ Public Class ProjectMgrUC
' Se non già creata, non devo fare alcunchè
If IsNothing(m_VeinMatchingWnd) Then Return
' Esecuzione
m_VeinMatchingWnd.AdjustPosition()
m_VeinMatchingWnd.Show()
EgtSetCurrentContext(m_CurrProjPage.CurrentProjectScene.GetCtx())
VeinMatchingBtn.IsChecked = True