Exemplo n.º 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;
        }
Exemplo n.º 2
0
        public RückgabeWindow(MainWindow parent, OnlineShopDB ctx)
        {
            this.parent = parent;
            this.ctx    = ctx;

            InitializeComponent();
        }
Exemplo n.º 3
0
        public BenutzerBearbeitenWindow(MainWindow parent, OnlineShopDB ctx)
        {
            this.parent = parent;
            this.ctx    = ctx;

            InitializeComponent();
        }
Exemplo n.º 4
0
        public FavoritenWindow(MainWindow parent)
        {
            this.parent = parent;
            ctx         = new OnlineShopDB();
            W1          = new WarenkorbWindow(parent);

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

            InitializeComponent();
        }
Exemplo n.º 6
0
        public BezahlWindow(MainWindow parent)
        {
            this.parent = parent;
            ctx         = new OnlineShopDB();
            W1          = new BestellbestätigungWindow(parent);

            InitializeComponent();
        }
Exemplo n.º 7
0
        public KasseWindow(MainWindow parent, OnlineShopDB ctx)
        {
            this.parent = parent;
            this.ctx    = ctx;
            W1          = new LogInWindow(parent, ctx);
            W2          = new BezahlWindow(parent);

            InitializeComponent();
        }
        public WarenkorbWindow(MainWindow parent)
        {
            this.parent = parent;
            ctx         = new OnlineShopDB();
            W1          = new KasseWindow(parent, ctx);
            W2          = new BezahlWindow(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));
        }