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(); }
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(); }
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); }
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 }); }
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; }