From a1890bd024e0baea393480810709f43208825b9a Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Wed, 8 Mar 2017 18:26:37 -0300 Subject: Sum form implementation start --- Project/ElementForm.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Project/ElementForm.cpp') 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); + } -- cgit