Browse Source

Enregistrement de session

master
Maxime Wack 11 years ago
parent
commit
223c2efb30
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      CosMoS/cosmos.cpp

+ 7
- 1
CosMoS/cosmos.cpp View File

@@ -72,9 +72,11 @@ void cosmos::OnCellChange( wxGridEvent& event )
int row = event.GetRow();
int col = event.GetCol();
if ((col > 0) && (col < 4))
if (col < 4) //checkboxes
{
bdd->modresultbool(row+1, col, grid_Consults->GetCellValue(row, col));
//Actualisation de la grille
bool publie = false;
for (int i=1; i<4; i++)
if (grid_Consults->GetCellValue(row, col).IsSameAs("1"))
@@ -86,6 +88,10 @@ void cosmos::OnCellChange( wxGridEvent& event )
grid_Consults->SetCellBackgroundColour(row, i, *wxWHITE);
grid_Consults->ForceRefresh();
}
else //corrections
{
}
}
void cosmos::OnCellDbClick( wxGridEvent& event )


Loading…
Cancel
Save