コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\Forms\MainWindow.xaml"
                ((GameHaker.MainWindow)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.Window_MouseMove);

            #line default
            #line hidden

            #line 9 "..\..\..\Forms\MainWindow.xaml"
                ((GameHaker.MainWindow)(target)).Activated += new System.EventHandler(this.Window_Activated);

            #line default
            #line hidden

            #line 9 "..\..\..\Forms\MainWindow.xaml"
                ((GameHaker.MainWindow)(target)).Deactivated += new System.EventHandler(this.Window_Deactivated);

            #line default
            #line hidden

            #line 9 "..\..\..\Forms\MainWindow.xaml"
                ((GameHaker.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.OnLoaded1_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 3:
                this.grid = ((System.Windows.Controls.Grid)(target));
                return;

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

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

            #line 77 "..\..\..\Forms\MainWindow.xaml"
                this.test.MouseMove += new System.Windows.Input.MouseEventHandler(this.Button_MouseMove);

            #line default
            #line hidden

            #line 77 "..\..\..\Forms\MainWindow.xaml"
                this.test.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Button_MouseUp);

            #line default
            #line hidden

            #line 77 "..\..\..\Forms\MainWindow.xaml"
                this.test.Click += new System.Windows.RoutedEventHandler(this.test_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.MainPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.form = ((GameHaker.Resource.control.AppForm)(target));
                return;

            case 8:

            #line 81 "..\..\..\Forms\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 82 "..\..\..\Forms\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click1);

            #line default
            #line hidden
                return;

            case 10:
                this.TaskPanel = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 12:
                this.testblock_Copy = ((GameHaker.TaskPanelBlock)(target));
                return;

            case 13:
                this.testblock = ((GameHaker.TaskPanelBlock)(target));
                return;

            case 14:
                this.testblock_Copy1 = ((GameHaker.TaskPanelBlock)(target));
                return;

            case 15:
                this.MenuPysk = ((GameHaker.TaskPanelBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
ファイル: AppForm.xaml.cs プロジェクト: xperexmax/Hacker_game
 public FormContent(AppForm form, ContentFormPage content)
 {
     this.Form = form;
     content.setForm(form);
     this.Content = content;
 }
コード例 #3
0
 public void setForm(control.AppForm form)
 {
     this.Form = form;
 }