Example #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            MainWindows_Multiplayer main;

            try
            {
                main = new MainWindows_Multiplayer(localIP_page.Text, localPORT_page.Text, remoteIP_page.Text, remotePORT_page.Text);
            }catch (Exception ex)
            {
                MessageBox.Show("Ungültige IP!" + ex);
                return;
            }


            serverpage.NavigationService.Navigate(main);
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainwindow_multiplayer = ((_2dGame.MainWindows_Multiplayer)(target));

            #line 8 "..\..\MainWindows_Multiplayer.xaml"
                this.mainwindow_multiplayer.KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden

            #line 8 "..\..\MainWindows_Multiplayer.xaml"
                this.mainwindow_multiplayer.KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp);

            #line default
            #line hidden
                return;

            case 2:
                this.Parralex_canvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:
                this.counter = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.background1 = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.background2 = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.background3 = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.background4 = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.background5 = ((System.Windows.Controls.Image)(target));
                return;

            case 9:
                this.background11 = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.background21 = ((System.Windows.Controls.Image)(target));
                return;

            case 11:
                this.background31 = ((System.Windows.Controls.Image)(target));
                return;

            case 12:
                this.background41 = ((System.Windows.Controls.Image)(target));
                return;

            case 13:
                this.background51 = ((System.Windows.Controls.Image)(target));
                return;

            case 14:
                this.Scroller = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 15:
                this.Background_Canvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 16:
                this.Player_Canvas = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 17:
                this.rect8 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 18:
                this.player2 = ((System.Windows.Shapes.Rectangle)(target));
                return;
            }
            this._contentLoaded = true;
        }