summaryrefslogtreecommitdiffstats
path: root/Project/ElementForm.cpp
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2017-03-08 18:26:37 -0300
committerThales1330 <thaleslima.ufu@gmail.com>2017-03-08 18:26:37 -0300
commita1890bd024e0baea393480810709f43208825b9a (patch)
tree5eeb60b0e9d3085bbe2d2ba0c1939f26aa574f27 /Project/ElementForm.cpp
parent009849e49967af659354a94a16c51cab5eb8b5a4 (diff)
downloadPSP.git-a1890bd024e0baea393480810709f43208825b9a.tar.gz
PSP.git-a1890bd024e0baea393480810709f43208825b9a.tar.xz
PSP.git-a1890bd024e0baea393480810709f43208825b9a.zip
Sum form implementation start
Diffstat (limited to 'Project/ElementForm.cpp')
-rw-r--r--Project/ElementForm.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Project/ElementForm.cpp b/Project/ElementForm.cpp
index a718f26..ea7a3d8 100644
--- a/Project/ElementForm.cpp
+++ b/Project/ElementForm.cpp
@@ -2963,8 +2963,15 @@ SumFormBase::SumFormBase(wxWindow* parent, wxWindowID id, const wxString& title,
wxPersistenceManager::Get().Restore(this);
}
#endif
+ // Connect events
+ m_buttonOK->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SumFormBase::OnOKClick), NULL, this);
+ m_ButtonCancel->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SumFormBase::OnCancelClick), NULL, this);
+
}
SumFormBase::~SumFormBase()
{
+ m_buttonOK->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SumFormBase::OnOKClick), NULL, this);
+ m_ButtonCancel->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SumFormBase::OnCancelClick), NULL, this);
+
}