Пример #1
0
 public Song(string songName, string coverFilename, string songFilename, GenreType genre, string singer, int year, CategoryType categorie, SingType singType, List <Notes> notes)
 {
     this.songName      = songName;
     this.coverFilename = coverFilename;
     this.songFilename  = songFilename;
     this.genre         = genre.ToString();
     this.singer        = singer;
     this.year          = year;
     this.categorie     = categorie.ToString();
     this.singType      = singType;
     this.notes         = notes;
 }
Пример #2
0
            public override void OnClick()
            {
                if (Sign.GumpID == 1676)
                {
                    Sign.GumpID = 1673;
                }
                else
                {
                    Sign.GumpID++;
                }

                _From.SendLocalizedMessage(1158830, string.Format("{0}", SingType.ToList().Find(x => x.Key == Sign.GumpID).Value)); // The sign text has been set to: ~1_TEXT~
            }