Esempio n. 1
0
 public void EditTrack(Track SelectedTrack, Composition NewComposition, string NewFullName, string NewShortName, InstrumentFamily NewFamily, InstrumentType NewType, InstrumentFeature NewFeature, string NewColor)
 {
     SelectedTrack.Update(
         new Track()
 {
     Composition = NewComposition,
     FullName = NewFullName,
     ShortName = NewShortName,
     Family = NewFamily.ToString(),
     Type = NewType.ToString(),
     Feature = NewFeature.ToString(),
     Instrument = new Instrument(NewFamily, NewType, NewFeature),
     Color = NewColor
 });
 }
Esempio n. 2
0
 public Track(Composition composition, string fullname, string shortname, InstrumentFamily family, InstrumentType type, InstrumentFeature feature, string color)
 {
     this.Id = Guid.NewGuid();
     this.Composition = composition;
     this.FullName = fullname;
     this.ShortName = shortname;
     this.Family = family.ToString();
     this.Type = type.ToString();
     this.Feature = feature.ToString();
     this.Instrument = new Instrument(family, type, feature);
     this.Color = color;
     this.Notes = new List<Note>();
     this.Save();
 }