| 1511 | */ |
| 1512 | |
| 1513 | void WConfiguration::OnButtonDelProfileClick( wxCommandEvent& event ) |
| 1514 | { |
| 1515 | wxString msg; |
| 1516 | |
| 1517 | msg.sprintf (_("This action will delete %s profile.\nAre you sure you want to continue?"), m_choProfile->GetStringSelection().c_str()); |
| 1518 | wxMessageDialog dlg (NULL, msg, _T("Enable Viacam"), wxICON_EXCLAMATION | wxYES_NO ); |
| 1519 | if (dlg.ShowModal()== wxID_YES) |
| 1520 | { |
| 1521 | wxGetApp().GetController().GetConfigManager().DeleteCurrentProfile(); |
| 1522 | InitializeData (); |
| 1523 | UnChanged (); |
| 1524 | } |
| 1525 | event.Skip(false); |
| 1526 | } |
| 1527 | |
| 1528 | |
| 1529 | /*! |
nothing calls this directly
no test coverage detected