public modifyWorker1(mainMenu mm)
 {
     InitializeComponent();
     myCaller = mm;
 }
 public insertUser(mainMenu mm)
 {
     InitializeComponent();
     myCaller = mm;
 }
示例#3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainMenuFrame = ((BicycleRentalWPF.mainMenu)(target));
                return;

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

            #line 12 "..\..\mainMenu.xaml"
                this.deleteUserButton.Click += new System.Windows.RoutedEventHandler(this.deleteUserButton_Click);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\mainMenu.xaml"
                this.insertUserButton.Click += new System.Windows.RoutedEventHandler(this.insertUserButton_Click);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\mainMenu.xaml"
                this.modifyUserButton.Click += new System.Windows.RoutedEventHandler(this.modifyUserButton_Click);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\mainMenu.xaml"
                this.deleteWorkerButton.Click += new System.Windows.RoutedEventHandler(this.deleteWorkerButton_Click);

            #line default
            #line hidden
                return;

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

            #line 16 "..\..\mainMenu.xaml"
                this.insertWorkerButton.Click += new System.Windows.RoutedEventHandler(this.insertWorkerButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.modifyWorkerButton = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\mainMenu.xaml"
                this.modifyWorkerButton.Click += new System.Windows.RoutedEventHandler(this.modifyWorkerButton_Click);

            #line default
            #line hidden
                return;

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

            #line 18 "..\..\mainMenu.xaml"
                this.deleteBicycleButton.Click += new System.Windows.RoutedEventHandler(this.deleteBicycleButton_Click);

            #line default
            #line hidden
                return;

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

            #line 19 "..\..\mainMenu.xaml"
                this.insertBicycleButton.Click += new System.Windows.RoutedEventHandler(this.insertBicycleButton_Click);

            #line default
            #line hidden
                return;

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

            #line 20 "..\..\mainMenu.xaml"
                this.modifyBicycleButton.Click += new System.Windows.RoutedEventHandler(this.modifyBicycleButton_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.returnBicycleButton = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\mainMenu.xaml"
                this.returnBicycleButton.Click += new System.Windows.RoutedEventHandler(this.returnBicycleButton_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.mainMenuBackButton = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\mainMenu.xaml"
                this.mainMenuBackButton.Click += new System.Windows.RoutedEventHandler(this.mainMenuBackButton_Click);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\mainMenu.xaml"
                this.rentBicycleButton.Click += new System.Windows.RoutedEventHandler(this.rentBicycleButton_Click);

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