コード例 #1
0
        //private string _NormalizedName;
        //public string NormalizedName
        //{
        //    get
        //    {
        //        //if (_NormalizedName == null)
        //        //    _NormalizedName = _Name==null ? null: _Name.NormalizeSpace().ToLower().WithoutAccent();

        //        //return _NormalizedName;

        //        return (_Name == null) ? null : _Name.NormalizeSpace().ToLower().WithoutAccent();
        //    }
        //}

        internal void AddAlbum(Album al,IImportContext Context)
        {
            if (AlbumHandler.ModelCollection.Contains(al))
            {
                return;
            }

            AlbumHandler.ModelCollection.Add(al);

            if (AlbumHandler.ModelCollection.Count == 1)
            {
                Context.Publish(this);
            }
        }