void BreakpointsWindow::UpdateBreakpoints()
{

    m_breakpointList->Freeze();
    m_breakpointList->DeleteAllItems();

    if (m_project != NULL)
    {
        for (unsigned int i = 0; i < m_project->GetNumFiles(); ++i)
        {
            AddBreakpointsForFile(m_project->GetFile(i));
        }

        for (unsigned int directoryIndex = 0; directoryIndex < m_project->GetNumDirectories(); ++directoryIndex)
        {
          Project::Directory *directory = m_project->GetDirectory(directoryIndex);
          for (unsigned int fileIndex = 0; fileIndex < directory->files.size(); ++fileIndex)
          {
            Project::File *file = directory->files[fileIndex];
            AddBreakpointsForFile(file);
          }
        }
    }

    m_breakpointList->Thaw();

    UpdateToolBarStatus();

}
void BreakpointsWindow::UpdateBreakpoints()
{

    m_breakpointList->Freeze();
    m_breakpointList->DeleteAllItems();

    if (m_project != NULL)
    {
        for (unsigned int i = 0; i < m_project->GetNumFiles(); ++i)
        {
            AddBreakpointsForFile(m_project->GetFile(i));
        }
    }

    m_breakpointList->Thaw();

    UpdateToolBarStatus();

}
void BreakpointsWindow::OnItemDeselected(wxListEvent& event)
{
    UpdateToolBarStatus();
}