diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2017-03-08 18:26:37 -0300 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2017-03-08 18:26:37 -0300 |
commit | a1890bd024e0baea393480810709f43208825b9a (patch) | |
tree | 5eeb60b0e9d3085bbe2d2ba0c1939f26aa574f27 /Project/ElementForm.cpp | |
parent | 009849e49967af659354a94a16c51cab5eb8b5a4 (diff) | |
download | PSP.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.cpp | 7 |
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); + } |