Пример #1
0
        private void BtnPrevious_Click(object sender, RoutedEventArgs e)
        {
            var newForm = new WindowLunchDinner();

            newForm.Show();
            this.Close();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.windowLunchDinner1 = ((Wawa_TouchScreen.WindowLunchDinner)(target));
                return;

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

            #line 10 "..\..\WindowLunchDinner.xaml"
                this.btnSoupsSidesBowls.Click += new System.Windows.RoutedEventHandler(this.BtnSoupsSidesBowls_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.btnSaladsWraps = ((System.Windows.Controls.Button)(target));

            #line 15 "..\..\WindowLunchDinner.xaml"
                this.btnSaladsWraps.Click += new System.Windows.RoutedEventHandler(this.BtnSaladsWraps_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.labelSoupsSidesBowls = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.labelSaladsWraps = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.listboxOrder = ((System.Windows.Controls.ListBox)(target));
                return;

            case 7:
                this.labelOrder = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.btnCancel = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\WindowLunchDinner.xaml"
                this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.BtnCancel_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.labelCancel = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.btnHoagies = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\WindowLunchDinner.xaml"
                this.btnHoagies.Click += new System.Windows.RoutedEventHandler(this.BtnLunchDinner_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.labelHoagies = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.labelBreakfastTop = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.btnPrevious = ((System.Windows.Controls.Button)(target));

            #line 44 "..\..\WindowLunchDinner.xaml"
                this.btnPrevious.Click += new System.Windows.RoutedEventHandler(this.BtnPrevious_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.labelPrevious = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }