Exemplo n.º 1
0
 /// <summary>
 /// this function insert a value into table topic
 /// </summary>
 /// <param name="topicName"></param>
 /// <returns></returns>
 private bool addTopic(string topicName)
 {
     try
     {
         Topic myTopic = new Topic();
         myTopic.Name     = topicName;
         myTopic.Info     = "topic test 4";
         myTopic.Order    = 1;
         myTopic.VideoUrl = "none";
         myTopic.Image    = "none";
         myTopic.Icon     = "none";
         AppDatabase myDataBase = new AppDatabase();
         myDataBase.insertTopic(myTopic);
         return(true);
     }
     catch (System.Exception)
     {
         return(false);
     }
 }