this->m_CurrentListWx->Reparent(this);
this->m_CurrentListWx->SetFunctorEnabled(false);
this->m_CurrentListWx->Show(true);
+ this->m_LastStatus = this->m_CurrentListWx->GetListBox()->GetStrings();
wxGridBagSizer* dialogSizer = new wxGridBagSizer(0, 0);
dialogSizer->AddGrowableCol(0);
wxALL | wxEXPAND | wxALIGN_CENTER_HORIZONTAL
| wxALIGN_CENTER_VERTICAL, 5);
+ //Bottom Sizer
+
wxBoxSizer* bottomSizer = new wxBoxSizer(wxHORIZONTAL);
bottomSizer->Add(0, 0, 1,
wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
}
void ListConfigDialog::OnOk(wxCommandEvent& event)
{
+
this->EndModal(1);
}
void ListConfigDialog::OnCancel(wxCommandEvent& event)
{
- Close();
+
+ this->m_CurrentListWx->GetListBox()->Clear();
+ this->m_CurrentListWx->GetListBox()->Append(this->m_LastStatus);
+ this->Close();
}
}
}