void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((Prototype_05.StartInstancePanel)(target));
                return;

            case 2:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));

            #line 13 "..\..\..\..\Panels\StartInstancePanel.xaml"
                this.MainGrid.PreviewTouchDown += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.OptionTouchDown);

            #line default
            #line hidden

            #line 13 "..\..\..\..\Panels\StartInstancePanel.xaml"
                this.MainGrid.PreviewTouchMove += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.OptionTouchMove);

            #line default
            #line hidden

            #line 13 "..\..\..\..\Panels\StartInstancePanel.xaml"
                this.MainGrid.PreviewTouchUp += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.OptionTouchUp);

            #line default
            #line hidden
                return;

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

            case 4:
                this.TitleHeader2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.NumericGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.NumericPath = ((System.Windows.Shapes.Path)(target));
                return;

            case 7:
                this.Numeric1Text = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.SliderValueText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.surfaceSlider = ((Microsoft.Surface.Presentation.Controls.SurfaceSlider)(target));

            #line 45 "..\..\..\..\Panels\StartInstancePanel.xaml"
                this.surfaceSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.NumericSliderValueChanged);

            #line default
            #line hidden
                return;

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

            case 11:
                this.Numeric2Text = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.SliderValueText2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.surfaceSlider2 = ((Microsoft.Surface.Presentation.Controls.SurfaceSlider)(target));

            #line 61 "..\..\..\..\Panels\StartInstancePanel.xaml"
                this.surfaceSlider2.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.NumericSlider2ValueChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.TimeGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:
                this.TimeGridText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.LocationGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 17:
                this.LocationGridText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 18:

            #line 107 "..\..\..\..\Panels\StartInstancePanel.xaml"
                ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.AreaComboButton_Clicked);

            #line default
            #line hidden
                return;

            case 19:
                this.AreaTitleText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 20:
                this.AreaBoxPath0 = ((System.Windows.Shapes.Path)(target));
                return;

            case 21:
                this.AreaBoxPath1 = ((System.Windows.Shapes.Path)(target));
                return;

            case 22:

            #line 148 "..\..\..\..\Panels\StartInstancePanel.xaml"
                ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.LocationComboButton_Clicked);

            #line default
            #line hidden
                return;

            case 23:
                this.LocationTitleText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 24:
                this.LocationBoxPath0 = ((System.Windows.Shapes.Path)(target));
                return;

            case 25:
                this.LocationBoxPath1 = ((System.Windows.Shapes.Path)(target));
                return;

            case 26:
                this.ObjectGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 27:
                this.ObjectGridText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 28:

            #line 215 "..\..\..\..\Panels\StartInstancePanel.xaml"
                ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.ObjectComboButton_Clicked);

            #line default
            #line hidden
                return;

            case 29:
                this.ObjectTitleText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 30:
                this.ObjectBoxPath0 = ((System.Windows.Shapes.Path)(target));
                return;

            case 31:
                this.ObjectBoxPath1 = ((System.Windows.Shapes.Path)(target));
                return;

            case 32:
                this.JustCreateGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 33:
                this.InstanceToWaitBox = ((Microsoft.Surface.Presentation.Controls.SurfaceCheckBox)(target));
                return;

            case 34:
                this.ApproveGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 35:
                this.OkText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 36:
                this.CancelText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 37:
                this.OkRectangle = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 38:
                this.OkButton = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target));
                return;

            case 39:
                this.OkImage = ((System.Windows.Controls.Image)(target));
                return;

            case 40:
                this.CancelRectangle = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 41:
                this.CancelButton = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target));
                return;

            case 42:
                this.ObjectComboListBox = ((Microsoft.Surface.Presentation.Controls.SurfaceListBox)(target));

            #line 305 "..\..\..\..\Panels\StartInstancePanel.xaml"
                this.ObjectComboListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ObjectComboListBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 43:
                this.Object0Text = ((System.Windows.Controls.TextBox)(target));
                return;

            case 44:
                this.Object1Text = ((System.Windows.Controls.TextBox)(target));
                return;

            case 45:
                this.Object2Text = ((System.Windows.Controls.TextBox)(target));
                return;

            case 46:
                this.AreaComboListBox = ((Microsoft.Surface.Presentation.Controls.SurfaceListBox)(target));

            #line 329 "..\..\..\..\Panels\StartInstancePanel.xaml"
                this.AreaComboListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.AreaComboListBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 47:
                this.Area0Text = ((System.Windows.Controls.TextBox)(target));
                return;

            case 48:
                this.Area1Text = ((System.Windows.Controls.TextBox)(target));
                return;

            case 49:
                this.Area2Text = ((System.Windows.Controls.TextBox)(target));
                return;

            case 50:
                this.LocationComboListBox = ((Microsoft.Surface.Presentation.Controls.SurfaceListBox)(target));

            #line 354 "..\..\..\..\Panels\StartInstancePanel.xaml"
                this.LocationComboListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.LocationComboListBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 51:
                this.Location0Text = ((System.Windows.Controls.TextBox)(target));
                return;

            case 52:
                this.Location1Text = ((System.Windows.Controls.TextBox)(target));
                return;

            case 53:
                this.Location2Text = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((Prototype_05.InstanceControlWidget)(target));
                return;

            case 2:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 24 "..\..\..\InstanceControl.xaml"
                this.NavigationGrid.PreviewTouchDown += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.NavigationTouchDown);

            #line default
            #line hidden

            #line 24 "..\..\..\InstanceControl.xaml"
                this.NavigationGrid.PreviewTouchMove += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.NavigationTouchMove);

            #line default
            #line hidden

            #line 24 "..\..\..\InstanceControl.xaml"
                this.NavigationGrid.PreviewTouchUp += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.NavigationTouchUp);

            #line default
            #line hidden
                return;

            case 4:
                this.InstanceRect = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 5:
                this.AllRect = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 6:
                this.InstanceText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.AllText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.HeaderGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.StateText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:

            #line 60 "..\..\..\InstanceControl.xaml"
                ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.InstanceNameClicked);

            #line default
            #line hidden
                return;

            case 11:
                this.TitleText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.SolvingGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 13:
                this.ConfirmText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.ConfirmRectangle = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 15:
                this.ConfirmButton = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target));

            #line 86 "..\..\..\InstanceControl.xaml"
                this.ConfirmButton.PreviewTouchDown += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.OptionTouchDown);

            #line default
            #line hidden

            #line 86 "..\..\..\InstanceControl.xaml"
                this.ConfirmButton.PreviewTouchMove += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.OptionTouchMove);

            #line default
            #line hidden

            #line 86 "..\..\..\InstanceControl.xaml"
                this.ConfirmButton.PreviewTouchUp += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.OptionTouchUp);

            #line default
            #line hidden
                return;

            case 16:
                this.ConfirmMeasureImage = ((System.Windows.Controls.Image)(target));
                return;

            case 17:
                this.ChosenMeasureText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 18:
                this.SolvingInfoGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 19:
                this.SelectText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 20:
                this.SolveiGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 21:
                this.Solve1Grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 22:
                this.DoNothingText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this.Solve2Grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 24:
                this.PausePlayImage = ((System.Windows.Controls.Image)(target));
                return;

            case 25:
                this.PausePlayText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 26:
                this.PauseImage = ((System.Windows.Controls.Image)(target));
                return;

            case 27:
                this.PauseText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 28:
                this.StopText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 29:
                this.KillText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 30:
                this.OptionSlider = ((Microsoft.Surface.Presentation.Controls.SurfaceSlider)(target));

            #line 149 "..\..\..\InstanceControl.xaml"
                this.OptionSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.OptionValueChanged);

            #line default
            #line hidden
                return;

            case 31:
                this.OptionSlider2 = ((Microsoft.Surface.Presentation.Controls.SurfaceSlider)(target));

            #line 153 "..\..\..\InstanceControl.xaml"
                this.OptionSlider2.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.OptionValueChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.RootLayout = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.scatter = ((Microsoft.Surface.Presentation.Controls.ScatterView)(target));
     
     #line 239 "..\..\Window1.xaml"
     this.scatter.AddHandler(Microsoft.Surface.Presentation.Controls.ScatterContentControlBase.ContainerManipulationCompletedEvent, new Microsoft.Surface.Presentation.Controls.ContainerManipulationCompletedEventHandler(this.OnManipulationCompleted));
     
     #line default
     #line hidden
     return;
     case 3:
     this.puzzles = ((Microsoft.Surface.Presentation.Controls.SurfaceListBox)(target));
     
     #line 247 "..\..\Window1.xaml"
     this.puzzles.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.OnPuzzleSelected);
     
     #line default
     #line hidden
     return;
     case 4:
     this.Difficulty = ((Microsoft.Surface.Presentation.Controls.SurfaceSlider)(target));
     
     #line 271 "..\..\Window1.xaml"
     this.Difficulty.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.OnDifficultyChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }