Esempio n. 1
0
 public Track(Composition composition, string fullname, string shortname, InstrumentFamily family, InstrumentType type, InstrumentFeature feature, string color)
 {
     this.Composition = composition;
     this.FullName = fullname;
     this.ShortName = shortname;
     this.Instrument = new Instrument(family, type, feature);
     this.Family = family;
     this.Type = type;
     this.Feature = feature;
     this.Color = color;
     this.SaveToDB();
 }
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();
 }
Esempio n. 3
0
 public void CreateTrack(Composition SelectedComposition, string FullName, string ShortName, InstrumentFamily Family, InstrumentType Type, InstrumentFeature Feature, string Color)
 {
     Track Track = new Track(SelectedComposition, FullName, ShortName, Family, Type, Feature, Color);
 }
Esempio n. 4
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. 5
0
 public Instrument(InstrumentFamily family, InstrumentType type, InstrumentFeature feature)
 {
     this.Family = family;
     this.Type = type;
     this.Feature = feature;
 }
 public Instrument(InstrumentFamily family, InstrumentType type, InstrumentFeature feature)
 {
     this.Family  = family;
     this.Type    = type;
     this.Feature = feature;
 }