Example #1
0
 private void toolStripButtonReset_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Eliminar dados de contagem?", "Tem a certeza que deseja remover todos os dados da contagem?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         if (MessageBox.Show("Absoluta?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             SqliteConnector sqlite = DbConnection;
             using (SQLiteConnection sqliteCon = sqlite.Connect())
             {
                 sqlite.DeleteAllCountEntries(sqliteCon);
             }
             DataBind();
         }
     }
 }