Exemplo n.º 1
0
        //Löscht FileCard aus dem Register

        /*public void deleteFileCard(int deletingFileCard)
         * {
         *  foreach(var Register in registers)
         *  {
         *      foreach(var FileCard in fileCards)
         *      {
         *          if(FileCard.fileCardId == deletingFileCard)
         *          {
         *              FileCard.Remove();
         *          }
         *          else{}
         *      }
         *  }
         * }*/

        // Neue FileCard erstellen
        public void createFileCard(string fquestion, string fanswer, int registerId)
        {
            FileCard neueFileCard = new FileCard(fquestion, fanswer);

            connection.saveSingleFileCardinDB(neueFileCard, registerId);
        }