Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.icon = ((MahApps.Metro.IconPacks.PackIconMaterialLight)(target));
                return;

            case 2:
                this.error = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 108 "..\..\Message_Box.xaml"
                this.cancel.Click += new System.Windows.RoutedEventHandler(this.cancel_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\MainWindow.xaml"
                ((WpfApp2.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                ((WpfApp2.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.sell = ((System.Windows.Controls.Primitives.Popup)(target));
                return;

            case 3:
                this.settings = ((System.Windows.Controls.MenuItem)(target));

            #line 82 "..\..\MainWindow.xaml"
                this.settings.Click += new System.Windows.RoutedEventHandler(this.settings_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.tickets = ((System.Windows.Controls.MenuItem)(target));

            #line 93 "..\..\MainWindow.xaml"
                this.tickets.Click += new System.Windows.RoutedEventHandler(this.tickets_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.credits = ((System.Windows.Controls.MenuItem)(target));

            #line 103 "..\..\MainWindow.xaml"
                this.credits.Click += new System.Windows.RoutedEventHandler(this.credits_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.photo = ((System.Windows.Media.ImageBrush)(target));
                return;

            case 7:
                this.username = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.edit_profile = ((System.Windows.Controls.MenuItem)(target));

            #line 174 "..\..\MainWindow.xaml"
                this.edit_profile.Click += new System.Windows.RoutedEventHandler(this.edit_profile_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.logout = ((System.Windows.Controls.MenuItem)(target));

            #line 182 "..\..\MainWindow.xaml"
                this.logout.Click += new System.Windows.RoutedEventHandler(this.logout_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.exit = ((System.Windows.Controls.MenuItem)(target));

            #line 189 "..\..\MainWindow.xaml"
                this.exit.Click += new System.Windows.RoutedEventHandler(this.exit_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.grid = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 12:
                this.SideMenuSwitcher = ((MahApps.Metro.IconPacks.PackIconMaterialLight)(target));

            #line 227 "..\..\MainWindow.xaml"
                this.SideMenuSwitcher.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.SideMenuSwitcher_MouseDown);

            #line default
            #line hidden
                return;

            case 13:
                this.SideMenu = ((System.Windows.Controls.TabControl)(target));
                return;

            case 14:
                this.all_routes = ((System.Windows.Controls.StackPanel)(target));

            #line 245 "..\..\MainWindow.xaml"
                this.all_routes.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.all_routes_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 15:
                this.last_routes = ((System.Windows.Controls.StackPanel)(target));

            #line 272 "..\..\MainWindow.xaml"
                this.last_routes.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.last_routes_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 16:
                this.summary = ((System.Windows.Controls.StackPanel)(target));

            #line 298 "..\..\MainWindow.xaml"
                this.summary.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.summary_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 17:
                this.search = ((System.Windows.Controls.StackPanel)(target));

            #line 323 "..\..\MainWindow.xaml"
                this.search.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.search_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 18:
                this.Page = ((System.Windows.Controls.Frame)(target));
                return;
            }
            this._contentLoaded = true;
        }