private void Lbl_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { Window info = new RaumdarstellungWpfApplication.RegalInfo(_regal_id, _kapazitaet, _aktuellerInhalt, _mindestBestand, _aktuellerWarenwert); info.Owner = Application.Current.MainWindow; info.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.display = ((RaumdarstellungWpfApplication.RegalInfo)(target)); return; case 2: this.titel = ((System.Windows.Controls.Label)(target)); return; case 3: this.R_nr = ((System.Windows.Controls.Label)(target)); return; case 4: this.kapazität = ((System.Windows.Controls.Label)(target)); return; case 5: this.aktuellerInhalt = ((System.Windows.Controls.Label)(target)); return; case 6: this.mindestBestand = ((System.Windows.Controls.Label)(target)); return; case 7: this.aktuellerWarenwert = ((System.Windows.Controls.Label)(target)); return; case 8: this.ArtikelEinzelpreis = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }