private void addButton_Click(object sender, RoutedEventArgs e)
        {
            AddingScreen addingScreen = new AddingScreen();

            addingScreen.Owner = Window.GetWindow(this);
            addingScreen.ShowDialog();
            filterBox.SelectedIndex = -1;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.addingScreen = ((CakeShop.AddingScreen)(target));
                return;

            case 2:
                this.closeUserButton = ((System.Windows.Controls.Button)(target));

            #line 44 "..\..\AddingScreen.xaml"
                this.closeUserButton.Click += new System.Windows.RoutedEventHandler(this.closeUserButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.cakeNameBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.typeBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.imageBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.imageButton = ((System.Windows.Controls.Button)(target));

            #line 91 "..\..\AddingScreen.xaml"
                this.imageButton.Click += new System.Windows.RoutedEventHandler(this.imageButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.priceBox = ((System.Windows.Controls.TextBox)(target));

            #line 110 "..\..\AddingScreen.xaml"
                this.priceBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.textBox_PreviewTextInput);

            #line default
            #line hidden
                return;

            case 8:
                this.quantityBox = ((System.Windows.Controls.TextBox)(target));

            #line 122 "..\..\AddingScreen.xaml"
                this.quantityBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.textBox_PreviewTextInput);

            #line default
            #line hidden
                return;

            case 9:
                this.addButton = ((System.Windows.Controls.Button)(target));

            #line 128 "..\..\AddingScreen.xaml"
                this.addButton.Click += new System.Windows.RoutedEventHandler(this.addButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }