Example #1
0
        private void GetStringMaterialColors(StringMaterial material, out Color fillColor, out Color outlineColor)
        {
            switch (material)
            {
            default:
            case StringMaterial.PlainSteel:
                outlineColor = PlainSteelOutline;
                fillColor    = PlainSteelFill;
                break;

            case StringMaterial.SteelWound:
                outlineColor = SteelWoundOutline;
                fillColor    = SteelWoundFill;
                break;

            case StringMaterial.BronzeWound:
                outlineColor = BronzeWoundOutline;
                fillColor    = BronzeWoundFill;
                break;

            case StringMaterial.Nylon:
                outlineColor = NylonOutline;
                fillColor    = NylonFill;
                break;
            }
        }
 public AcousticGuitar(string make, string model, decimal price, string color, string bodyWood, 
     string fingerboardWood, bool caseIncluded, StringMaterial stringMaterial)
     : base(make, model, price, color, bodyWood, fingerboardWood)
 {
     this.CaseIncluded = caseIncluded;
     this.StringMaterial = stringMaterial;
 }
 public IAcousticGuitar CreateAcousticGuitar(string make, string model, decimal price, string color,
     string bodyWood, string fingerboardWood, bool caseIncluded, StringMaterial stringMaterial)
 {
     IAcousticGuitar acousticGuitar = new Acoustic(make, model, price, color,
     bodyWood, fingerboardWood, caseIncluded, stringMaterial);
     return acousticGuitar;
 }
 public AcousticGuitar(string make, string model, decimal price, string color, string bodyWood,
                       string fingerboardWood, bool caseIncluded, StringMaterial stringMaterial)
     : base(make, model, price, color, false, bodyWood, fingerboardWood, 6)
 {
     this.CaseIncluded   = caseIncluded;
     this.StringMaterial = stringMaterial;
 }
 public Acoustic(string make, string model, decimal price, string color, string bodyWood, string fingerboardWood, bool caseIncluded, StringMaterial stringMaterial)
     : base(make, model, price, color, bodyWood, fingerboardWood)
 {
     this.NumberOfStrings = 6;
     this.CaseIncluded = caseIncluded;
     this.StringMaterial = stringMaterial;
     this.IsElectronic = false;
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AcousticGuitar"/> class.
 /// </summary>
 /// <param name="make">
 /// The make.
 /// </param>
 /// <param name="model">
 /// The model.
 /// </param>
 /// <param name="price">
 /// The price.
 /// </param>
 /// <param name="color">
 /// The color.
 /// </param>
 /// <param name="isElectronic">
 /// The is electronic.
 /// </param>
 /// <param name="bodyWood">
 /// The body wood.
 /// </param>
 /// <param name="fingerboardWood">
 /// The fingerboard wood.
 /// </param>
 /// <param name="stringsNum">
 /// The strings num.
 /// </param>
 /// <param name="caseIncluded">
 /// The case included.
 /// </param>
 /// <param name="stringMaterial">
 /// The string material.
 /// </param>
 public AcousticGuitar(
     string make,
     string model,
     decimal price,
     string color,
     bool isElectronic,
     string bodyWood,
     string fingerboardWood,
     int stringsNum,
     bool caseIncluded,
     StringMaterial stringMaterial)
     : base(make, model, price, color, isElectronic, bodyWood, fingerboardWood, stringsNum)
 {
     this.CaseIncluded   = caseIncluded;
     this.StringMaterial = stringMaterial;
 }
Example #7
0
 public AcousticGuitar(string make, string model, decimal price, string color,
                       string bodyWood, string fingerboardWood, bool caseIncluded, StringMaterial stringMaterial) :
     base(make, model, price, color, bodyWood, fingerboardWood, GeneralGuitarNumberOfStrings, false)
 {
     this.CaseIncluded   = caseIncluded;
     this.StringMaterial = stringMaterial;
     this.IsElectronic   = false;
 }
Example #8
0
 public IAcousticGuitar CreateAcousticGuitar(string make, string model, decimal price, string color,
                                             string bodyWood, string fingerboardWood, bool caseIncluded, StringMaterial stringMaterial)
 {
     return(new AcousticGuitar(make, model, price, color, false, bodyWood, fingerboardWood, 6, caseIncluded, stringMaterial));
 }
Example #9
0
 public AcousticGuitar(string make, string model, decimal price, string color, string bodywood, string fingerBoardWood, bool caseIncluded, StringMaterial stringMaterial)
     : base(make, model, price, color, false, bodywood, fingerBoardWood, DefaultStringCount)
 {
     this.CaseIncluded = caseIncluded;
     this.StringMaterial = stringMaterial;
 }
Example #10
0
 public IAcousticGuitar CreateAcousticGuitar(string make, string model, decimal price, string color,
                                             string bodyWood, string fingerboardWood, bool caseIncluded, StringMaterial stringMaterial)
 {
     // TODO: Implement this method
     throw new NotImplementedException();
 }
 public IAcousticGuitar CreateAcousticGuitar(string make, string model, decimal price, string color,
     string bodyWood, string fingerboardWood, bool caseIncluded, StringMaterial stringMaterial)
 {
     return new MusicShop.Models.AcousticGuitar(make, model, price, color, bodyWood, fingerboardWood, caseIncluded, stringMaterial);
 }
 public IAcousticGuitar CreateAcousticGuitar(string make, string model, decimal price, string color,
     string bodyWood, string fingerboardWood, bool caseIncluded, StringMaterial stringMaterial)
 {
     // TODO: Implement this method
     throw new NotImplementedException();
 }
Example #13
0
 protected internal AcousticGuitar(string make, string model, decimal price, string color, string bodyWood, string fretboardWood, bool caseIncluded, StringMaterial stringMaterial)
     : base(make, model, price, color, false, bodyWood, fretboardWood, 6)
 {
     this.CaseIncluded = caseIncluded;
     this.StringMaterial = stringMaterial;
 }