/// <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); }
/// <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); }
/// <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); }