Example #1
0
 /// <summary>
 /// Deletes the specified media file from the database.
 /// </summary>
 public void DeleteMedia(Media media)
 {
     string sql = "DELETE FROM media WHERE path='" + parseSql (media.Path) + "'";
     executeSql (sql);
 }
Example #2
0
        /// <summary>
        /// Adds a media file to the store.
        /// </summary>
        public void Add(string path)
        {
            Media media = new Media (path);

            media_store.AppendValues (media);
            Global.Core.DataManager.AddMedia (media);
        }
Example #3
0
 /// <summary>
 /// Adds a media file to the sql database.
 /// </summary>
 public void AddMedia(Media media)
 {
     string sql = "INSERT INTO media VALUES ('" + parseSql (media.Path) + "')";
     executeSql (sql);
 }