public CorianProdukt(string produktKategori, string navn, DelingType deling) : base(deling) { Prisgrupper = new CorianPrisgruppeProdukt[30]; Navn = navn; ProduktKategori = produktKategori; }
public TilvalgGruppe(string gruppeTittel, DelingType deling) : base(deling) { tilvalgListe = new ObservableCollection <TilvalgElement>(); this.GruppeTittel = gruppeTittel; }
//public string PrisPerString //{ // get // { // if (PrisPer == PerPrisType.perLøpemeter) return "Per løpemeter"; // else return "Per stykk"; // } //} //public int PrisPerInt //{ // get // { // return (int)PrisPer; // } // set // { // if (value == 1) PrisPer = PerPrisType.perLøpemeter; // else PrisPer = PerPrisType.perAntall; // OnPropertyChanged("PrisPerString"); //Rett med PrisPerString!!! // } //} //public PerPrisType PrisPer { get; set; } //public enum PerPrisType //{ // perAntall = 0, // perLøpemeter = 1, //} public Produkt(DelingType deling) { this.Deling = deling; }