public void AddPicture(Model.Picture picture)
        {
            XML.MediaXML mediaXML = new XML.MediaXML();

            mediaXML.Load("pictures.xml");
            if (!mediaXML.HasMedia(picture.Path))
            {
                mediaXML.Add(picture.Path, picture.Stream);
                mediaXML.WriteInFile("pictures.xml");

                if (picture.Name.Contains(this._SearchInput))
                {
                    Pictures.Add(picture);
                }
                PicturesTmp.Add(picture);
            }
        }
        public void RemovePicture(Model.Picture picture)
        {
            XML.MediaXML mediaXML = new XML.MediaXML();

            mediaXML.Load("pictures.xml");
            mediaXML.Remove(picture.Path);
            mediaXML.WriteInFile("pictures.xml");
            String namePathFile = picture.Path;

            Pictures.Remove(picture);
            var medias   = from media in PicturesTmp where media.Path.Contains(namePathFile) select media;
            var selected = picture;

            foreach (var media in medias)
            {
                selected = media;
            }
            PicturesTmp.Remove(selected);
        }