Beispiel #1
0
        private void btnAddSupplierWindow_Click(object sender, RoutedEventArgs e)
        {
            var aswindow = new AddSupplierWindow();

            aswindow.Show();
            this.Close();
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.wndAddSupplier = ((AutoPartsInventorySystem.AddSupplierWindow)(target));
                return;

            case 2:
                this.tbxSupplierName = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 4:
                this.btnAddSupplier = ((System.Windows.Controls.Button)(target));
                return;

            case 5:
                this.btnCancelAddSupplier = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.wndAddSupplier = ((AutoPartsInventorySystem.AddSupplierWindow)(target));
                return;

            case 2:
                this.tbxSupplierName = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 4:
                this.btnAddSupplier = ((System.Windows.Controls.Button)(target));

            #line 76 "..\..\..\AddWindows\AddSupplierWindow.xaml"
                this.btnAddSupplier.Click += new System.Windows.RoutedEventHandler(this.btnAddSupplier_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnCancelAddSupplier = ((System.Windows.Controls.Button)(target));

            #line 84 "..\..\..\AddWindows\AddSupplierWindow.xaml"
                this.btnCancelAddSupplier.Click += new System.Windows.RoutedEventHandler(this.btnCancelAddSupplier_Click);

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