Exemple #1
0
        public MainWindow()
        {
            ctx = new OnlineShopDB();

            W1  = new StartseiteWindow(this, ctx);
            W2  = new PCWindow(this, ctx);
            W3  = new MonitorWindow(this, ctx);
            W4  = new NotebookWindow(this, ctx);
            W5  = new ZubehörWindow(this, ctx);
            W6  = new ÜberUnsWindow(this);
            W7  = new VersandWindow(this);
            W8  = new AGBWindow(this);
            W9  = new RückgabeWindow(this, ctx);
            W10 = new KontaktWindow(this);
            W11 = new DatenschutzWindow(this);
            W12 = new ProduktWindow(this);
            W13 = new FavoritenWindow(this);
            W14 = new LogInWindow(this, ctx);
            W15 = new WarenkorbWindow(this);
            W16 = new BestellbestätigungWindow(this);
            W17 = new BenutzerBearbeitenWindow(this, ctx);

            InitializeComponent();

            WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;

            Logo_Icon.Source      = new BitmapImage(new Uri(@"\Bilder\PC-Nation_Logo.png", UriKind.Relative));
            Herz_Icon.Source      = new BitmapImage(new Uri(@"\Bilder\Herz_Icon.png", UriKind.Relative));
            Benutzer_Icon.Source  = new BitmapImage(new Uri(@"\Bilder\Benutzer_Icon.png", UriKind.Relative));
            Warenkorb_Icon.Source = new BitmapImage(new Uri(@"\Bilder\Einkaufswagen_Icon.png", UriKind.Relative));
            Lupen_Icon.Source     = new BitmapImage(new Uri(@"\Bilder\Lupen_Icon.png", UriKind.Relative));

            contentControl.Content = W1;
        }
        public MonitorWindow(MainWindow parent, OnlineShopDB ctx)
        {
            this.parent = parent;
            this.ctx    = ctx;
            W1          = new ProduktWindow(parent);

            InitializeComponent();
        }
        public StartseiteWindow(MainWindow parent, OnlineShopDB ctx)
        {
            this.parent = parent;
            this.ctx    = ctx;
            W1          = new ProduktWindow(parent);

            InitializeComponent();

            Kundenurteil_Image.Source = new BitmapImage(new Uri(@"\Bilder\Kundenurteil.png", UriKind.Relative));
            Trust_Image.Source        = new BitmapImage(new Uri(@"\Bilder\logo_trustedshops.png", UriKind.Relative));
            Händler_Image.Source      = new BitmapImage(new Uri(@"\Bilder\BesterOnlinehändler.png", UriKind.Relative));
        }