internal void leggTilKummer(Kontroller.Forslag.CorianForslagKontroll corianForslagKontroll) { CorianplateVindu3 corianVindu = new CorianplateVindu3(db, Modell.Produkt.DelingType.CorianKum, Modell.Produkt.DelingType.CorianKumHeltreKum, false, HuskFarge); corianVindu.Title = "Legg til kummer"; corianVindu.Owner = Hjelpeklasser.VisualTree.getWindowFromParent(corianForslagKontroll); corianVindu.ShowDialog(); if (corianVindu == null || corianVindu.Produkt == null || corianVindu.DialogResult != true) { return; } if (!ForslagSomVises.Produkter.Contains(corianVindu.Produkt)) { ForslagSomVises.Add(corianVindu.Produkt); } }
internal void leggTilCorianprodukter(FrameworkElement kontrollIvindu) { CorianplateVindu3 corianVindu = new CorianplateVindu3(db, Modell.Produkt.DelingType.CorianProdukt, Modell.Produkt.DelingType.CorianProdukt, false, HuskFarge); corianVindu.Title = "Legg til Corian-produkter"; corianVindu.Owner = Hjelpeklasser.VisualTree.getWindowFromParent(kontrollIvindu); corianVindu.ShowDialog(); if (corianVindu == null || corianVindu.Produkt == null || corianVindu.DialogResult != true) { return; } HuskFarge = corianVindu.HuskFarge; if (!ForslagSomVises.Produkter.Contains(corianVindu.Produkt)) { ForslagSomVises.Add(corianVindu.Produkt); } }