コード例 #1
0
        public CSong(CSong song)
        {
            this._CoverTextureSmall = song._CoverTextureSmall;
            this._CoverTextureBig   = song._CoverTextureBig;

            this.Medley             = new SMedley();
            this.Medley.Source      = song.Medley.Source;
            this.Medley.StartBeat   = song.Medley.StartBeat;
            this.Medley.EndBeat     = song.Medley.EndBeat;
            this.Medley.FadeInTime  = song.Medley.FadeInTime;
            this.Medley.FadeOutTime = song.Medley.FadeOutTime;

            this.CalculateMedley = song.CalculateMedley;
            this.PreviewStart    = song.PreviewStart;

            this.ShortEnd  = song.ShortEnd;
            this.DuetPart1 = song.DuetPart1;
            this.DuetPart2 = song.DuetPart2;

            this.Encoding   = song.Encoding;
            this.Folder     = song.Folder;
            this.FolderName = song.FolderName;
            this.FileName   = song.FileName;
            this.Relative   = song.Relative;

            this.MP3FileName        = song.MP3FileName;
            this.CoverFileName      = song.CoverFileName;
            this.BackgroundFileName = song.BackgroundFileName;
            this.VideoFileName      = song.VideoFileName;

            this.VideoAspect    = song.VideoAspect;
            this._CoverLoaded   = song._CoverLoaded;
            this.CoverBigLoaded = song.CoverBigLoaded;
            this._NotesLoaded   = song._NotesLoaded;

            this.Artist = song.Artist;
            this.Title  = song.Title;

            this.Start  = song.Start;
            this.Finish = song.Finish;

            this.BPM      = song.BPM;
            this.Gap      = song.Gap;
            this.VideoGap = song.VideoGap;

            this.Comment = new List <string>();
            foreach (string value in song.Comment)
            {
                this.Comment.Add(value);
            }

            this.ID       = song.ID;
            this.Visible  = song.Visible;
            this.CatIndex = song.CatIndex;
            this.Selected = song.Selected;

            this.Edition = new List <string>();
            foreach (string value in song.Edition)
            {
                this.Edition.Add(value);
            }

            this.Genre = new List <string>();
            foreach (string value in song.Genre)
            {
                this.Genre.Add(value);
            }

            this.Year = song.Year;

            this.Language = new List <string>();
            foreach (string value in song.Language)
            {
                this.Language.Add(value);
            }

            this.Notes = new CNotes(song.Notes);
        }
コード例 #2
0
ファイル: CSong.cs プロジェクト: HansMaiser/Vocaluxe
        public CSong(CSong song)
        {
            this._CoverTextureSmall = song._CoverTextureSmall;
            this._CoverTextureBig = song._CoverTextureBig;

            this.Medley = new SMedley();
            this.Medley.Source = song.Medley.Source;
            this.Medley.StartBeat = song.Medley.StartBeat;
            this.Medley.EndBeat = song.Medley.EndBeat;
            this.Medley.FadeInTime = song.Medley.FadeInTime;
            this.Medley.FadeOutTime = song.Medley.FadeOutTime;

            this.CalculateMedley = song.CalculateMedley;
            this.PreviewStart = song.PreviewStart;

            this.ShortEnd = song.ShortEnd;
            this.DuetPart1 = song.DuetPart1;
            this.DuetPart2 = song.DuetPart2;

            this.Encoding = song.Encoding;
            this.Folder = song.Folder;
            this.FolderName = song.FolderName;
            this.FileName = song.FileName;
            this.Relative = song.Relative;

            this.MP3FileName = song.MP3FileName;
            this.CoverFileName = song.CoverFileName;
            this.BackgroundFileName = song.BackgroundFileName;
            this.VideoFileName = song.VideoFileName;

            this.VideoAspect = song.VideoAspect;
            this._CoverLoaded = song._CoverLoaded;
            this.CoverBigLoaded = song.CoverBigLoaded;
            this._NotesLoaded = song._NotesLoaded;

            this.Artist = song.Artist;
            this.Title = song.Title;
            
            this.Start = song.Start;
            this.Finish = song.Finish;

            this.BPM = song.BPM;
            this.Gap = song.Gap;
            this.VideoGap = song.VideoGap;

            this.Comment = new List<string>();
            foreach (string value in song.Comment)
            {
                this.Comment.Add(value);
            }

            this.ID = song.ID;
            this.Visible = song.Visible;
            this.CatIndex = song.CatIndex;
            this.Selected = song.Selected;

            this.Edition = new List<string>();
            foreach (string value in song.Edition)
            {
                this.Edition.Add(value);
            }

            this.Genre = new List<string>();
            foreach (string value in song.Genre)
            {
                this.Genre.Add(value);
            }

            this.Year = song.Year;

            this.Language = new List<string>();
            foreach (string value in song.Language)
            {
                this.Language.Add(value);
            }

            this.Notes = new CNotes(song.Notes);
        }