public KalkulationWindow(Produktkatalog katalog, Kalkulation kalkulation)
        {
            InitializeComponent();
            this.kalkulation = kalkulation;
            this.katalog     = katalog;

            if (kalkulation.raeume.Count > 0)
            {
                foreach (Raum r in kalkulation.raeume)
                {
                    lbRaeume.Items.Add(r);
                }
            }

            /*
             * this.roomIcon.Stretch = Stretch.None;
             * this.roomIcon.Opacity = 0.5;
             * lbRaeume.Background = this.roomIcon;
             *
             * this.addIcon.Stretch = Stretch.None;
             * this.addIcon.AlignmentX = AlignmentX.Right;
             * this.addIcon.AlignmentY = AlignmentY.Center;
             * AddBoden.Background = this.addIcon;
             * AddWand.Background = this.addIcon;
             */
        }
예제 #2
0
        private void Label_Click_2(object sender, MouseButtonEventArgs e)
        {
            if (e.ChangedButton != MouseButton.Left)
            {
                return;
            }

            if (this.kalkulation == null)
            {
                this.kalkulation = new Kalkulation.Kalkulation(this.meinKatalog);
            }

            KalkulationWindow window = new KalkulationWindow(this.meinKatalog, this.kalkulation);

            window.Owner = this;
            window.ShowDialog();
        }
예제 #3
0
 public void resetKalkulation()
 {
     this.kalkulation = new Kalkulation.Kalkulation(this.meinKatalog);
 }