Exemplo n.º 1
0
        // Konstruktor
        public TapetenBerechnung(Tapete tapete, MainWindow mainwindow)
        {
            InitializeComponent();

            this.tapete     = tapete;
            this.berechnung = new Berechnung();
            this.mainwindow = mainwindow;

            tapeteBeschreibungTextBlock.Text += " Name:\t\t\t" + tapete.name + "\n";
            tapeteBeschreibungTextBlock.Text += " Artikelnummer:\t\t" + tapete.artikelnummer + "\n";
            tapeteBeschreibungTextBlock.Text += " Beschreibung:\t\t" + tapete.beschreibung + "\n";
            tapeteBeschreibungTextBlock.Text += " Preis:\t\t\t" + tapete.preis + " / Rolle" + "\n";
        }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            // Fenster wird zentriert dargestellt
            this.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            this.berechnung     = new Berechnung();
            this.produktkatalog = new ProduktKatalog();
            this.warenkorb      = new ObservableCollection <WarenkorbObjekt>();
            this.passwortdialog = new Passwortdialog(this);
            produktkatalog      = produktkatalog.ProdukteEinlesen();
            Tapeten.ItemsSource = produktkatalog.tapeten;
            Fliesen.ItemsSource = produktkatalog.fliesen;
        }