Пример #1
0
        public Details(Verwaltung verwaltung, Produktkatalog katalog)
        {
            InitializeComponent();

            // Member der Klasse Details
            this.produktTyp  = produktTyp;
            this.verwaltung  = verwaltung;
            this.meinKatalog = katalog;

            this.tbArtikelnummer.Focus();
            this.anpassungDetailAnsicht();
        }
Пример #2
0
        private void Label_Click(object sender, MouseButtonEventArgs e)
        {
            if (e.ChangedButton != MouseButton.Left)
            {
                return;
            }

            VerwaltungLogin login;

            Verwaltung.Verwaltung verwaltung;
            Nullable <bool>       returnValue;
            bool result;

            login       = new VerwaltungLogin();
            login.Owner = this;

            returnValue       = login.ShowDialog();
            this.loginPruefen = login.loginPruefen;

            lb1.AppendText("returnValue: " + returnValue + "\n");

            if (!this.loginPruefen)
            {
                return;
            }

            result = returnValue.Value;

            lb1.AppendText(String.Format("Login erfolgreich? {0}\n", result));
            lb1.ScrollToEnd();

            if (result)
            {
                verwaltung       = new Verwaltung.Verwaltung(this.meinKatalog);
                verwaltung.Owner = this;

                verwaltung.ShowDialog();
            }
            else
            {
                MessageBox.Show(this, "Das eingegebene Passwort für die Verwaltung war falsch!!!", "Falsches Passwort");
            }
        }
        public ZusatzproduktAuswahl(Verwaltung verwaltung)
        {
            InitializeComponent();

            this.verwaltung = verwaltung;
        }