void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.UserControl = ((SurfacePoker.AddPlayer)(target)); return; case 2: this.addplayerscatteru = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 3: #line 15 "..\..\AddPlayer.xaml" ((System.Windows.Controls.Button)(target)).TouchDown += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.closePlayerAdd); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MyScatterView = ((Microsoft.Surface.Presentation.Controls.ScatterView)(target)); #line 13 "..\..\surfacewindow1.xaml" this.MyScatterView.LayoutUpdated += new System.EventHandler(this.ScatterView_LayoutUpdated); #line default #line hidden return; case 2: this.Save1 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 3: #line 17 "..\..\surfacewindow1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.save1_Click); #line default #line hidden return; case 4: this.Load1 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 5: #line 22 "..\..\surfacewindow1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.load1_Click); #line default #line hidden return; case 6: this.Save2 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 7: #line 27 "..\..\surfacewindow1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.save2_Click); #line default #line hidden return; case 8: this.Load2 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 9: #line 32 "..\..\surfacewindow1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.load2_Click); #line default #line hidden return; case 10: this.PushPinButton = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 11: #line 38 "..\..\surfacewindow1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.AddPushPinButton_Click); #line default #line hidden return; case 12: this.RulerButton = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 13: #line 43 "..\..\surfacewindow1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.AddRulerButton_Click); #line default #line hidden return; case 14: this.MagicLensButton = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 15: #line 49 "..\..\surfacewindow1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.AddMagicLensButton_Click); #line default #line hidden return; case 16: this.MagnifyingGlassButton = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 17: #line 54 "..\..\surfacewindow1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.AddMagnifyingGlass_Click); #line default #line hidden return; case 18: this.PaperClipButton = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 19: #line 59 "..\..\surfacewindow1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.AddPaperClip_Click); #line default #line hidden return; case 20: this.NoteButton = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 21: #line 64 "..\..\surfacewindow1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.AddNote_Click); #line default #line hidden return; case 22: this.AutoSaveButton = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 23: #line 69 "..\..\surfacewindow1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.AutoSaveButton_Click_1); #line default #line hidden return; case 24: this.ClusterButton = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 74 "..\..\surfacewindow1.xaml" this.ClusterButton.Click += new System.Windows.RoutedEventHandler(this.ClusterButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
//---------------------------------------------------------// /// <summary> /// Creates puzzle pieces from a visual, and adds them into the ScatterView. /// </summary> /// <param name="visual"></param> void LoadVisualAsPuzzle(Visual visual, Direction fromDirection) { // The more columns/rows, the less each piece needs to overlap float rowOverlap = PuzzleManager.Overlap / rowCount; float colOverlap = PuzzleManager.Overlap / colCount; puzzleBrush = new VisualBrush(visual); // Tell the puzzle manager to load a puzzle with the specified dimensions puzzleManager.LoadPuzzle(colCount, rowCount); for (int row = 0; row < rowCount; row++) { for (int column = 0; column < colCount; column++) { // Calculate the size of the rectangle that will be used to create a viewbox into the puzzle image. // The size is specified as a percentage of the total image size. float boxLeft = (float)column / (float)colCount; float boxTop = (float)row / (float)rowCount; float boxWidth = 1f / colCount; float boxHeight = 1f / rowCount; // Items in column 0 don't have any male puzzle parts on their side, all others do if (column != 0) { boxLeft -= colOverlap; boxWidth += colOverlap; } // Items in row 0 don't have any male puzzle parts on their top, all others do if (row != 0) { boxTop -= rowOverlap; boxHeight += rowOverlap; } // Make a visual brush based on the rectangle that was just calculated. VisualBrush itemBrush = new VisualBrush(visual); itemBrush.Viewbox = new Rect(boxLeft, boxTop, boxWidth, boxHeight); itemBrush.ViewboxUnits = BrushMappingMode.RelativeToBoundingBox; // Get the shape of the piece Geometry shape = GetPieceGeometry(column, row); // Put the brush into a puzzle piece PuzzlePiece piece = new PuzzlePiece(column + (colCount * row), shape, itemBrush); // Add the PuzzlePiece to a ScatterViewItem SSC.ScatterViewItem item = new SSC.ScatterViewItem(); item.Content = piece; // Set the initial size of the item and prevent it from being resized item.Width = Math.Round(piece.ClipShape.Bounds.Width, 0); item.Height = Math.Round(piece.ClipShape.Bounds.Height, 0); item.CanScale = false; // Set the ability to rotate based on the difficulty selected item.CanRotate = allowRotation; // Set the item's data context so it can use the piece's shape Binding binding = new Binding(); binding.Source = piece; item.SetBinding(ScatterViewItem.DataContextProperty, binding); // Animate the item into view AddPiece(item, fromDirection); } } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 568 "..\..\SurfaceWindow1.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CommandBinding_Executed); #line default #line hidden return; case 2: this.RootGrid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.backgroundImg = ((System.Windows.Controls.Image)(target)); return; case 4: this.startAnimation = ((System.Windows.Controls.Canvas)(target)); return; case 5: this.Visualizer1 = ((Microsoft.Surface.Presentation.Controls.TagVisualizer)(target)); return; case 6: this.Player1Grid = ((System.Windows.Controls.Grid)(target)); return; case 7: this.player1Check = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 621 "..\..\SurfaceWindow1.xaml" this.player1Check.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Check); #line default #line hidden return; case 8: this.player1Fold = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 631 "..\..\SurfaceWindow1.xaml" this.player1Fold.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Fold); #line default #line hidden return; case 9: this.player1Bet = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 641 "..\..\SurfaceWindow1.xaml" this.player1Bet.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Bet); #line default #line hidden return; case 10: this.player1Name = ((System.Windows.Controls.TextBlock)(target)); #line 651 "..\..\SurfaceWindow1.xaml" this.player1Name.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Fold); #line default #line hidden return; case 11: this.player1Cash = ((System.Windows.Controls.Label)(target)); return; case 12: this.Player2Grid = ((System.Windows.Controls.Grid)(target)); return; case 13: this.player2Name = ((System.Windows.Controls.TextBlock)(target)); return; case 14: this.player2Check = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 749 "..\..\SurfaceWindow1.xaml" this.player2Check.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Check); #line default #line hidden return; case 15: this.player2Fold = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 759 "..\..\SurfaceWindow1.xaml" this.player2Fold.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Fold); #line default #line hidden return; case 16: this.player2Bet = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 769 "..\..\SurfaceWindow1.xaml" this.player2Bet.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Bet); #line default #line hidden return; case 17: this.player2Cash = ((System.Windows.Controls.Label)(target)); return; case 18: this.Player3Grid = ((System.Windows.Controls.Grid)(target)); return; case 19: this.player3Name = ((System.Windows.Controls.TextBlock)(target)); return; case 20: this.player3Check = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 801 "..\..\SurfaceWindow1.xaml" this.player3Check.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Check); #line default #line hidden return; case 21: this.player3Fold = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 811 "..\..\SurfaceWindow1.xaml" this.player3Fold.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Fold); #line default #line hidden return; case 22: this.player3Bet = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 821 "..\..\SurfaceWindow1.xaml" this.player3Bet.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Bet); #line default #line hidden return; case 23: this.player3Cash = ((System.Windows.Controls.Label)(target)); return; case 24: this.Player4Grid = ((System.Windows.Controls.Grid)(target)); return; case 25: this.player4Name = ((System.Windows.Controls.TextBlock)(target)); return; case 26: this.player4Check = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 913 "..\..\SurfaceWindow1.xaml" this.player4Check.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Check); #line default #line hidden return; case 27: this.player4Fold = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 923 "..\..\SurfaceWindow1.xaml" this.player4Fold.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Fold); #line default #line hidden return; case 28: this.player4Bet = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 933 "..\..\SurfaceWindow1.xaml" this.player4Bet.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Bet); #line default #line hidden return; case 29: this.player4Cash = ((System.Windows.Controls.Label)(target)); return; case 30: this.Player5Grid = ((System.Windows.Controls.Grid)(target)); return; case 31: this.player5Name = ((System.Windows.Controls.TextBlock)(target)); return; case 32: this.player5Check = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 1025 "..\..\SurfaceWindow1.xaml" this.player5Check.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Check); #line default #line hidden return; case 33: this.player5Fold = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 1035 "..\..\SurfaceWindow1.xaml" this.player5Fold.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Fold); #line default #line hidden return; case 34: this.player5Bet = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 1045 "..\..\SurfaceWindow1.xaml" this.player5Bet.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Bet); #line default #line hidden return; case 35: this.player5Cash = ((System.Windows.Controls.Label)(target)); return; case 36: this.Player6Grid = ((System.Windows.Controls.Grid)(target)); return; case 37: this.player6Name = ((System.Windows.Controls.TextBlock)(target)); return; case 38: this.player6Check = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 1137 "..\..\SurfaceWindow1.xaml" this.player6Check.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Check); #line default #line hidden return; case 39: this.player6Fold = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 1147 "..\..\SurfaceWindow1.xaml" this.player6Fold.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Fold); #line default #line hidden return; case 40: this.player6Bet = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 1157 "..\..\SurfaceWindow1.xaml" this.player6Bet.TouchEnter += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.Bet); #line default #line hidden return; case 41: this.player6Cash = ((System.Windows.Controls.Label)(target)); return; case 42: this.grid = ((System.Windows.Controls.Grid)(target)); return; case 43: this.helpText = ((System.Windows.Controls.TextBlock)(target)); return; case 44: this.TableCards = ((System.Windows.Controls.StackPanel)(target)); return; case 45: this.t1 = ((System.Windows.Controls.Image)(target)); return; case 46: this.t2 = ((System.Windows.Controls.Image)(target)); return; case 47: this.t3 = ((System.Windows.Controls.Image)(target)); return; case 48: this.t4 = ((System.Windows.Controls.Image)(target)); return; case 49: this.t5 = ((System.Windows.Controls.Image)(target)); return; case 50: this.Scatter = ((Microsoft.Surface.Presentation.Controls.ScatterView)(target)); return; case 51: this.SpielerhinzuScatter = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 52: this.AddPlayer = ((SurfacePoker.AddPlayerControl)(target)); return; case 53: this.Anleitung = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 54: #line 1266 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Button)(target)).TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.closeHelp); #line default #line hidden return; case 55: this.DownloadApp = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 56: this.Settings = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 57: this.p1c1s = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 58: this.p1c1 = ((SurfacePoker.PlayerCard)(target)); return; case 59: this.p1c2s = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 60: this.p1c2 = ((SurfacePoker.PlayerCard)(target)); return; case 61: this.p2c1s = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 62: this.p2c1 = ((SurfacePoker.PlayerCard)(target)); return; case 63: this.p2c2s = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 64: this.p2c2 = ((SurfacePoker.PlayerCard)(target)); return; case 65: this.p3c1s = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 66: this.p3c1 = ((SurfacePoker.PlayerCard)(target)); return; case 67: this.p3c2s = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 68: this.p3c2 = ((SurfacePoker.PlayerCard)(target)); return; case 69: this.p4c1s = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 70: this.p4c1 = ((SurfacePoker.PlayerCard)(target)); return; case 71: this.p4c2s = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 72: this.p4c2 = ((SurfacePoker.PlayerCard)(target)); return; case 73: this.p5c1s = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 74: this.p5c1 = ((SurfacePoker.PlayerCard)(target)); return; case 75: this.p5c2s = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 76: this.p5c2 = ((SurfacePoker.PlayerCard)(target)); return; case 77: this.p6c1s = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 78: this.p6c1 = ((SurfacePoker.PlayerCard)(target)); return; case 79: this.p6c2s = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 80: this.p6c2 = ((SurfacePoker.PlayerCard)(target)); return; case 81: this.p2c10 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); #line 1414 "..\..\SurfaceWindow1.xaml" this.p2c10.TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 82: #line 1423 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 83: this.p2c20 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 84: #line 1434 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 85: this.p2c50 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 86: #line 1445 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 87: this.p2c100 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 88: #line 1457 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 89: this.p2c200 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 90: #line 1468 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 91: this.p2c500 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 92: #line 1479 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 93: this.p1c10 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 94: #line 1490 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 95: this.p1c20 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 96: #line 1501 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 97: this.p1c50 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 98: #line 1512 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 99: this.p1c100 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 100: #line 1523 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 101: this.p1c200 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 102: #line 1534 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 103: this.p1c500 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 104: #line 1545 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 105: this.p3c10 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 106: #line 1556 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 107: this.p3c20 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 108: #line 1567 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 109: this.p3c50 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 110: #line 1578 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 111: this.p3c100 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 112: #line 1589 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 113: this.p3c200 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 114: #line 1600 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 115: this.p3c500 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 116: #line 1611 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 117: this.p4c10 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 118: #line 1622 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 119: this.p4c20 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 120: #line 1633 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 121: this.p4c50 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 122: #line 1644 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 123: this.p4c100 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 124: #line 1655 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 125: this.p4c200 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 126: #line 1666 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 127: this.p4c500 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 128: #line 1677 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 129: this.p5c10 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 130: #line 1688 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 131: this.p5c20 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 132: #line 1699 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 133: this.p5c50 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 134: #line 1710 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 135: this.p5c100 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 136: #line 1721 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 137: this.p5c200 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 138: #line 1732 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 139: this.p5c500 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 140: #line 1743 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 141: this.p6c10 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 142: #line 1754 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 143: this.p6c20 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 144: #line 1765 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 145: this.p6c50 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 146: #line 1776 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 147: this.p6c100 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 148: #line 1787 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 149: this.p6c200 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 150: #line 1798 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 151: this.p6c500 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 152: #line 1809 "..\..\SurfaceWindow1.xaml" ((System.Windows.Controls.Image)(target)).TouchLeave += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.moveChip); #line default #line hidden return; case 153: this.potLeft = ((System.Windows.Controls.Label)(target)); return; case 154: this.potRight = ((System.Windows.Controls.Label)(target)); return; case 155: this.PauseOverlay = ((System.Windows.Controls.Canvas)(target)); return; case 156: this.GewinnerOverlay = ((System.Windows.Controls.Canvas)(target)); return; case 157: this.gewinnerTxt = ((System.Windows.Controls.TextBlock)(target)); return; case 158: this.MainMenu = ((Microsoft.Surface.Presentation.Controls.ElementMenu)(target)); return; case 159: this.ElementMenuItemSpielStarten = ((Microsoft.Surface.Presentation.Controls.ElementMenuItem)(target)); return; case 160: this.ElementMenuItemFortsetzen = ((Microsoft.Surface.Presentation.Controls.ElementMenuItem)(target)); return; case 161: this.ElementMenuItemPause = ((Microsoft.Surface.Presentation.Controls.ElementMenuItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.genePolygon = ((System.Windows.Shapes.Polygon)(target)); return; case 2: this.geneNameLabel = ((System.Windows.Controls.Label)(target)); return; case 3: this.geneBPLabel = ((System.Windows.Controls.Label)(target)); return; case 4: this.leftPrimerPolygon = ((System.Windows.Shapes.Polygon)(target)); return; case 5: this.rightPrimerPolygon = ((System.Windows.Shapes.Polygon)(target)); return; case 6: this.runningLeftBlastLabel = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 7: this.runningRightBlastLabel = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 8: this.leftPrimer = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 9: this.leftSequenceRestrictionLayer = ((System.Windows.Controls.Grid)(target)); return; case 10: this.leftSequence = ((System.Windows.Controls.TextBlock)(target)); return; case 11: this.rightPrimer = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 12: this.rightSequenceRestrictionLayer = ((System.Windows.Controls.Grid)(target)); return; case 13: this.rightSequence = ((System.Windows.Controls.TextBlock)(target)); return; case 14: this.leftHighlight = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); #line 72 "..\..\PrimerDesignerUserControl.xaml" this.leftHighlight.ScatterManipulationDelta += new Microsoft.Surface.Presentation.Controls.ScatterManipulationDeltaEventHandler(this.leftHighlight_ScatterManipulationDelta); #line default #line hidden #line 73 "..\..\PrimerDesignerUserControl.xaml" this.leftHighlight.ScatterManipulationCompleted += new Microsoft.Surface.Presentation.Controls.ScatterManipulationCompletedEventHandler(this.leftHighlight_ScatterManipulationCompleted); #line default #line hidden return; case 15: this.rightHighlight = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); #line 78 "..\..\PrimerDesignerUserControl.xaml" this.rightHighlight.ScatterManipulationDelta += new Microsoft.Surface.Presentation.Controls.ScatterManipulationDeltaEventHandler(this.rightHighlight_ScatterManipulationDelta); #line default #line hidden #line 79 "..\..\PrimerDesignerUserControl.xaml" this.rightHighlight.ScatterManipulationCompleted += new Microsoft.Surface.Presentation.Controls.ScatterManipulationCompletedEventHandler(this.rightHighlight_ScatterManipulationCompleted); #line default #line hidden return; case 16: this.leftLength = ((System.Windows.Controls.Label)(target)); return; case 17: this.leftTemp = ((System.Windows.Controls.Label)(target)); return; case 18: this.leftGibbsFree = ((System.Windows.Controls.Label)(target)); return; case 19: this.leftBlastResult = ((System.Windows.Controls.Label)(target)); return; case 20: this.leftTempResult = ((System.Windows.Controls.Label)(target)); return; case 21: this.leftHairpinResult = ((System.Windows.Controls.Label)(target)); return; case 22: this.leftSelfDimerResult = ((System.Windows.Controls.Label)(target)); return; case 23: this.leftHeteroDimerResult = ((System.Windows.Controls.Label)(target)); return; case 24: #line 117 "..\..\PrimerDesignerUserControl.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.LeftSurfaceButton_Click); #line default #line hidden return; case 25: #line 121 "..\..\PrimerDesignerUserControl.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.HairpinLeftButton_Click); #line default #line hidden return; case 26: #line 125 "..\..\PrimerDesignerUserControl.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.SelfDimerLeftButton_Click); #line default #line hidden return; case 27: #line 129 "..\..\PrimerDesignerUserControl.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.HeteroDimerLeftButton_Click); #line default #line hidden return; case 28: this.rightLength = ((System.Windows.Controls.Label)(target)); return; case 29: this.temp = ((System.Windows.Controls.Label)(target)); return; case 30: this.rightGibbsFree = ((System.Windows.Controls.Label)(target)); return; case 31: this.rightBlastResult = ((System.Windows.Controls.Label)(target)); return; case 32: this.rightTempResult = ((System.Windows.Controls.Label)(target)); return; case 33: this.rightHairpinResult = ((System.Windows.Controls.Label)(target)); return; case 34: this.rightSelfDimerResult = ((System.Windows.Controls.Label)(target)); return; case 35: this.rightHeteroDimerResult = ((System.Windows.Controls.Label)(target)); return; case 36: #line 165 "..\..\PrimerDesignerUserControl.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RightSurfaceButton_Click); #line default #line hidden return; case 37: #line 168 "..\..\PrimerDesignerUserControl.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.HairpinRightButton_Click); #line default #line hidden return; case 38: #line 171 "..\..\PrimerDesignerUserControl.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.SelfDimerRightButton_Click); #line default #line hidden return; case 39: #line 174 "..\..\PrimerDesignerUserControl.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.HeteroDimerRightButton_Click); #line default #line hidden return; case 40: #line 183 "..\..\PrimerDesignerUserControl.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click); #line default #line hidden return; case 41: this.saveLabelSVI = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 42: this.blastGrid = ((System.Windows.Controls.Grid)(target)); return; case 43: this.blastScatterView = ((Microsoft.Surface.Presentation.Controls.ScatterView)(target)); return; case 44: #line 199 "..\..\PrimerDesignerUserControl.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.HideSurfaceButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.LibraryButton = ((System.Windows.Controls.Button)(target)); #line 20 "..\..\Window1.xaml" this.LibraryButton.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 20 "..\..\Window1.xaml" this.LibraryButton.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 2: this.StudentCenterButton = ((System.Windows.Controls.Button)(target)); #line 22 "..\..\Window1.xaml" this.StudentCenterButton.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 22 "..\..\Window1.xaml" this.StudentCenterButton.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 3: this.FoyButton = ((System.Windows.Controls.Button)(target)); #line 24 "..\..\Window1.xaml" this.FoyButton.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 24 "..\..\Window1.xaml" this.FoyButton.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 4: this.McCannButton = ((System.Windows.Controls.Button)(target)); #line 26 "..\..\Window1.xaml" this.McCannButton.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 26 "..\..\Window1.xaml" this.McCannButton.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 5: this.DonnellyButton = ((System.Windows.Controls.Button)(target)); #line 28 "..\..\Window1.xaml" this.DonnellyButton.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 28 "..\..\Window1.xaml" this.DonnellyButton.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 6: this.HancockButton = ((System.Windows.Controls.Button)(target)); #line 30 "..\..\Window1.xaml" this.HancockButton.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 30 "..\..\Window1.xaml" this.HancockButton.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 7: this.MaristInfo = ((System.Windows.Controls.Grid)(target)); return; case 8: this.logo = ((System.Windows.Controls.Image)(target)); return; case 9: this.twitterBox = ((System.Windows.Controls.ListBox)(target)); return; case 10: this.twitterBoxHead = ((System.Windows.Controls.ListBox)(target)); return; case 11: this.maristBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 12: this.myCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 13: this.MainScatterView = ((Microsoft.Surface.Presentation.Controls.ScatterView)(target)); return; case 14: this.StudentCenter = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 15: this.StudentCenterButtonX = ((System.Windows.Controls.Button)(target)); #line 142 "..\..\Window1.xaml" this.StudentCenterButtonX.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 142 "..\..\Window1.xaml" this.StudentCenterButtonX.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 16: this.Library = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 17: this.LibraryButtonX = ((System.Windows.Controls.Button)(target)); #line 186 "..\..\Window1.xaml" this.LibraryButtonX.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 186 "..\..\Window1.xaml" this.LibraryButtonX.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 18: this.McCann = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 19: this.McannButtonX = ((System.Windows.Controls.Button)(target)); #line 231 "..\..\Window1.xaml" this.McannButtonX.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 231 "..\..\Window1.xaml" this.McannButtonX.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 20: this.Donnelly = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 21: this.DonnellyButtonX = ((System.Windows.Controls.Button)(target)); #line 285 "..\..\Window1.xaml" this.DonnellyButtonX.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 285 "..\..\Window1.xaml" this.DonnellyButtonX.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 22: this.Foy = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 23: this.Hancock = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 24: this.grid1 = ((System.Windows.Controls.Grid)(target)); return; case 25: this.HancockDetails = ((System.Windows.Controls.Grid)(target)); return; case 26: this.hcDetailTransform = ((System.Windows.Media.TranslateTransform)(target)); return; case 27: this.hcBuildingTab = ((System.Windows.Controls.TabItem)(target)); #line 360 "..\..\Window1.xaml" this.hcBuildingTab.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.TabItem_TouchDown); #line default #line hidden return; case 28: this.hcBuildingInfo = ((System.Windows.Controls.TextBlock)(target)); return; case 29: this.hcDepTab = ((System.Windows.Controls.TabItem)(target)); #line 367 "..\..\Window1.xaml" this.hcDepTab.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.TabItem_TouchDown); #line default #line hidden return; case 30: this.hcDepInfo = ((System.Windows.Controls.TextBlock)(target)); return; case 31: this.hcPhoneTab = ((System.Windows.Controls.TabItem)(target)); #line 374 "..\..\Window1.xaml" this.hcPhoneTab.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.TabItem_TouchDown); #line default #line hidden return; case 32: this.hcPhoneInfo = ((System.Windows.Controls.TextBlock)(target)); return; case 33: this.elementMenu = ((Microsoft.Surface.Presentation.Controls.ElementMenu)(target)); return; case 34: #line 393 "..\..\Window1.xaml" ((Microsoft.Surface.Presentation.Controls.ElementMenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.addPhotoControlBox); #line default #line hidden return; case 35: this.HancockCloseButton = ((Microsoft.Surface.Presentation.Controls.ElementMenuItem)(target)); #line 395 "..\..\Window1.xaml" this.HancockCloseButton.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden return; case 36: this.HancockDetailButton = ((Microsoft.Surface.Presentation.Controls.ElementMenuItem)(target)); #line 396 "..\..\Window1.xaml" this.HancockDetailButton.Click += new System.Windows.RoutedEventHandler(this.slideDOut); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Momma = ((Microsoft.Surface.Presentation.Controls.ScatterView)(target)); return; case 2: this.Daddy = ((System.Windows.Controls.Canvas)(target)); return; case 3: this.poly1 = ((System.Windows.Shapes.Polygon)(target)); return; case 4: this.scatterViewItem1 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MyScatterView = ((Microsoft.Surface.Presentation.Controls.ScatterView)(target)); return; case 2: this.PushPinButton = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 3: #line 26 "..\..\HabilisX.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.AddPushPinButton_Click); #line default #line hidden return; case 4: this.RulerButton = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 5: #line 31 "..\..\HabilisX.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.AddRulerButton_Click); #line default #line hidden return; case 6: this.MagicLensButton = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 7: #line 36 "..\..\HabilisX.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.AddMagicLensButton_Click); #line default #line hidden return; case 8: this.MagnifyingGlassButton = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 9: #line 41 "..\..\HabilisX.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.AddMagnifyingGlass_Click); #line default #line hidden return; case 10: this.PaperClipButton = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 11: #line 46 "..\..\HabilisX.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.AddPaperClip_Click); #line default #line hidden return; case 12: this.NoteButton = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 13: #line 51 "..\..\HabilisX.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.AddNote_Click); #line default #line hidden return; case 14: this.Save1 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 15: #line 56 "..\..\HabilisX.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.save1_Click); #line default #line hidden return; case 16: this.Load1 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 17: #line 61 "..\..\HabilisX.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.load1_Click); #line default #line hidden return; case 18: this.Save2 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 19: #line 66 "..\..\HabilisX.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.save2_Click); #line default #line hidden return; case 20: this.Load2 = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 21: #line 71 "..\..\HabilisX.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.load2_Click); #line default #line hidden return; } this._contentLoaded = true; }
/** * Creates a new tab at a certain page. 0 is the first opening, * 2 is the second opening, etc. **/ public TabItem createTab(int page) { int buffer = scatterBuffer; int count = tabArray.Count; TabItem tab = new TabItem(); tab.FontSize = 25; tab.Name = string.Format("tabItem_{0}", count); DockPanel heda = new DockPanel(); tab.Header = heda; Button delBtn = new Button(); delBtn.Height = 24; delBtn.Width = 24; delBtn.Margin = new Thickness(10, 0, 0, 0); delBtn.PreviewTouchDown += new EventHandler<TouchEventArgs>(deleteTabButtonPressed); delBtn.Click += new RoutedEventHandler(deleteTabButtonPressed); TextBlock hedatext = new TextBlock(); hedatext.Text = "yo"; Image img = new Image(); BitmapImage ex = new BitmapImage(); ex.BeginInit(); ex.UriSource = new Uri("icons/ex.png", UriKind.Relative); ex.EndInit(); img.Source = ex; img.Width = 16; img.Height = 16; delBtn.Content = img; heda.Children.Add(hedatext); heda.Children.Add(delBtn); Grid vSwipeGrid = new Grid(); Grid rSwipeGrid = new Grid(); Grid vSwipeHolderGrid = new Grid(); Grid rSwipeHolderGrid = new Grid(); Grid can = new Grid(); can.ClipToBounds = true; Image verso = new Image(); Image recto = new Image(); verso.Stretch = Stretch.UniformToFill; recto.Stretch = Stretch.UniformToFill; SSC.ScatterView ScatterView = new SSC.ScatterView(); SSC.ScatterViewItem ScatterItem = new SSC.ScatterViewItem(); ScatterItem.PreviewTouchDown += new EventHandler<TouchEventArgs>(OnPreviewTouchDown); ScatterItem.PreviewTouchDown += new EventHandler<TouchEventArgs>(leftSwipeDetectionStart); ScatterItem.PreviewTouchMove += new EventHandler<TouchEventArgs>(leftSwipeDetectionMove); ScatterItem.PreviewTouchUp += new EventHandler<TouchEventArgs>(leftSwipeDetectionStop); ScatterItem.PreviewTouchDown += new EventHandler<TouchEventArgs>(rightSwipeDetectionStart); ScatterItem.PreviewTouchMove += new EventHandler<TouchEventArgs>(rightSwipeDetectionMove); ScatterItem.PreviewTouchUp += new EventHandler<TouchEventArgs>(rightSwipeDetectionStop); ScatterItem.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(wheelIt); ScatterItem.SizeChanged += new SizeChangedEventHandler(changeTextBoxSize); ScatterView.Width = 2 * minPageWidth + 2 * buffer; ScatterView.Height = minPageHeight + 2 * buffer; ScatterView.Margin = new Thickness(-buffer, -buffer, 0, 0); ScatterItem.IsManipulationEnabled = true; ScatterItem.AddHandler(UIElement.ManipulationDeltaEvent, new EventHandler<ManipulationDeltaEventArgs>(scatter_ManipulationDelta), true); ScatterItem.AddHandler(UIElement.ManipulationCompletedEvent, new EventHandler<ManipulationCompletedEventArgs>(scatter_ManipulationCompleted), true); ScatterItem.Width = minPageWidth * 2; ScatterItem.Height = minPageHeight; ScatterItem.MaxWidth = maxPageWidth * 2; ScatterItem.MaxHeight = maxPageHeight; ScatterItem.MinWidth = minPageWidth * 2; ScatterItem.MinHeight = minPageHeight; ScatterItem.CanMove = true; ScatterItem.CanRotate = false; ScatterItem.CanScale = true; ScatterItem.Center = new Point(buffer + minPageWidth, buffer + minPageHeight / 2); Grid ScatterGrid = new Grid(); Grid vGrid = new Grid(); Grid rGrid = new Grid(); Grid vTranslationGrid = new Grid(); Grid rTranslationGrid = new Grid(); Grid vBoxesGrid = new Grid(); Grid rBoxesGrid = new Grid(); rBoxesGrid.Visibility = Visibility.Hidden; vBoxesGrid.Visibility = Visibility.Hidden; ScatterItem.Content = ScatterGrid; ColumnDefinition col1 = new ColumnDefinition(); col1.Width = new GridLength(1, GridUnitType.Star); ColumnDefinition col2 = new ColumnDefinition(); col2.Width = new GridLength(1, GridUnitType.Star); ScatterGrid.ColumnDefinitions.Add(col1); ScatterGrid.ColumnDefinitions.Add(col2); Grid.SetRow(vGrid, 0); Grid.SetColumn(vGrid, 0); Grid.SetRow(rGrid, 1); Grid.SetColumn(rGrid, 1); ScatterGrid.Children.Add(vGrid); ScatterGrid.Children.Add(rGrid); vGrid.Children.Add(verso); rGrid.Children.Add(recto); vGrid.Children.Add(vTranslationGrid); rGrid.Children.Add(rTranslationGrid); vGrid.Children.Add(vBoxesGrid); rGrid.Children.Add(rBoxesGrid); vGrid.Children.Add(vSwipeHolderGrid); rGrid.Children.Add(rSwipeHolderGrid); ColumnDefinition c1 = new ColumnDefinition(); c1.Width = new GridLength(1, GridUnitType.Star); ColumnDefinition c2 = new ColumnDefinition(); c2.Width = new GridLength(1, GridUnitType.Star); RowDefinition r1 = new RowDefinition(); r1.Height = new GridLength(1, GridUnitType.Star); RowDefinition r2 = new RowDefinition(); r2.Height = new GridLength(1, GridUnitType.Star); rSwipeHolderGrid.ColumnDefinitions.Add(c1); rSwipeHolderGrid.ColumnDefinitions.Add(c2); rSwipeHolderGrid.RowDefinitions.Add(r1); rSwipeHolderGrid.RowDefinitions.Add(r2); ColumnDefinition cc1 = new ColumnDefinition(); cc1.Width = new GridLength(1, GridUnitType.Star); ColumnDefinition cc2 = new ColumnDefinition(); cc2.Width = new GridLength(1, GridUnitType.Star); RowDefinition rr1 = new RowDefinition(); rr1.Height = new GridLength(1, GridUnitType.Star); RowDefinition rr2 = new RowDefinition(); rr2.Height = new GridLength(1, GridUnitType.Star); vSwipeHolderGrid.ColumnDefinitions.Add(cc1); vSwipeHolderGrid.ColumnDefinitions.Add(cc2); vSwipeHolderGrid.RowDefinitions.Add(rr1); vSwipeHolderGrid.RowDefinitions.Add(rr2); Grid.SetRow(rSwipeGrid, 2); Grid.SetColumn(rSwipeGrid, 2); Grid.SetRow(vSwipeGrid, 2); Grid.SetColumn(vSwipeGrid, 2); rSwipeHolderGrid.Children.Add(rSwipeGrid); vSwipeHolderGrid.Children.Add(vSwipeGrid); rSwipeGrid.HorizontalAlignment = HorizontalAlignment.Left; rSwipeGrid.VerticalAlignment = VerticalAlignment.Top; vSwipeGrid.HorizontalAlignment = HorizontalAlignment.Left; vSwipeGrid.VerticalAlignment = VerticalAlignment.Top; vSwipeGrid.Width = swipeLength; vSwipeGrid.Height = swipeHeight; rSwipeGrid.Width = swipeLength; rSwipeGrid.Height = swipeHeight; vSwipeGrid.Visibility = Visibility.Hidden; rSwipeGrid.Visibility = Visibility.Hidden; vSwipeGrid.Background = Brushes.WhiteSmoke; rSwipeGrid.Background = Brushes.WhiteSmoke; vSwipeGrid.Children.Add(new Canvas()); rSwipeGrid.Children.Add(new Canvas()); can.Children.Add(ScatterView); ScatterView.Items.Add(ScatterItem); language lang = language.None; if(tabArray.Count > tabNumber && currentTab() != null) lang = currentTab()._currentLanguage; tabArray.Insert(count, new MainTab(page, tab, verso, recto, can, vGrid, rGrid, delBtn, ScatterView, ScatterItem, vSwipeGrid, rSwipeGrid, vTranslationGrid, rTranslationGrid, vBoxesGrid, rBoxesGrid, hedatext, lang)); tab.Content = can; tabBar.Items.Insert(tabArray.Count - 1, tab); tabBar.SelectedIndex = tabArray.Count - 1; loadPage(); return tab; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Visualizer = ((Microsoft.Surface.Presentation.Controls.TagVisualizer)(target)); return; case 2: this.Layer_1 = ((System.Windows.Controls.Grid)(target)); return; case 3: this.Checkerboard = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 4: this.Square = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 5: this.TagsNotSupportedText = ((System.Windows.Controls.RichTextBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.wrapperScatterViewItem = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 2: this.infoCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 3: this.scoreLabel = ((System.Windows.Controls.Label)(target)); return; case 4: this.eValLabel = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 5: this.workspaceBarSV = ((Microsoft.Surface.Presentation.Controls.ScatterView)(target)); return; case 6: this.workspaceBlockerSVI = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 7: this.workspaceActualSV = ((Microsoft.Surface.Presentation.Controls.ScatterView)(target)); #line 117 "..\..\..\Views\ExtendedDesktop.xaml" this.workspaceActualSV.AddHandler(Microsoft.Surface.Presentation.SurfaceDragDrop.PreviewDragCanceledEvent, new System.EventHandler<Microsoft.Surface.Presentation.SurfaceDragDropEventArgs>(this.PublicationsArticle_DragCanceled)); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.scatterviewMomma = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); #line 5 "..\..\BlastPrimerResult.xaml" this.scatterviewMomma.ContactDown += new Microsoft.Surface.Presentation.ContactEventHandler(this.scatterviewMomma_ContactDown); #line default #line hidden return; case 2: this.scoreLabel = ((System.Windows.Controls.Label)(target)); return; case 3: this.startLabel = ((System.Windows.Controls.Label)(target)); return; case 4: this.stopLabel = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.UserControl = ((SurfacePoker.AddPlayer)(target)); return; case 2: this.addplayerscatteru = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 3: #line 15 "..\..\AddPlayer.xaml" ((System.Windows.Controls.Button)(target)).TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.closePlayerAdd); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.LibraryButton = ((System.Windows.Controls.Button)(target)); #line 24 "..\..\Window1.xaml" this.LibraryButton.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 24 "..\..\Window1.xaml" this.LibraryButton.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 2: this.StudentCenterButton = ((System.Windows.Controls.Button)(target)); #line 28 "..\..\Window1.xaml" this.StudentCenterButton.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 28 "..\..\Window1.xaml" this.StudentCenterButton.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 3: this.FoyButton = ((System.Windows.Controls.Button)(target)); #line 32 "..\..\Window1.xaml" this.FoyButton.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 32 "..\..\Window1.xaml" this.FoyButton.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 4: this.McCannButton = ((System.Windows.Controls.Button)(target)); #line 36 "..\..\Window1.xaml" this.McCannButton.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 36 "..\..\Window1.xaml" this.McCannButton.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 5: this.DonnellyButton = ((System.Windows.Controls.Button)(target)); #line 40 "..\..\Window1.xaml" this.DonnellyButton.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 40 "..\..\Window1.xaml" this.DonnellyButton.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 6: this.HancockButton = ((System.Windows.Controls.Button)(target)); #line 44 "..\..\Window1.xaml" this.HancockButton.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 44 "..\..\Window1.xaml" this.HancockButton.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 7: this.StudentCenter = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 8: this.StudentCenterButtonX = ((System.Windows.Controls.Button)(target)); #line 122 "..\..\Window1.xaml" this.StudentCenterButtonX.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 122 "..\..\Window1.xaml" this.StudentCenterButtonX.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 9: this.Library = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 10: this.LibraryButtonX = ((System.Windows.Controls.Button)(target)); #line 166 "..\..\Window1.xaml" this.LibraryButtonX.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 166 "..\..\Window1.xaml" this.LibraryButtonX.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 11: this.Hancock = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 12: this.HancockButtonX = ((System.Windows.Controls.Button)(target)); #line 210 "..\..\Window1.xaml" this.HancockButtonX.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 210 "..\..\Window1.xaml" this.HancockButtonX.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 13: this.McCann = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 14: this.McannButtonX = ((System.Windows.Controls.Button)(target)); #line 255 "..\..\Window1.xaml" this.McannButtonX.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 255 "..\..\Window1.xaml" this.McannButtonX.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 15: this.Donnelly = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 16: this.DonnellyButtonX = ((System.Windows.Controls.Button)(target)); #line 301 "..\..\Window1.xaml" this.DonnellyButtonX.Click += new System.Windows.RoutedEventHandler(this.button_click); #line default #line hidden #line 301 "..\..\Window1.xaml" this.DonnellyButtonX.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 17: this.Foy = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 18: this.logo = ((System.Windows.Controls.Image)(target)); return; case 19: this.textBlock1 = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.DrawingPadCanvas = ((Microsoft.Surface.Presentation.Controls.SurfaceInkCanvas)(target)); #line 83 "..\..\Window1.xaml" this.DrawingPadCanvas.StrokeCollected += new System.Windows.Controls.InkCanvasStrokeCollectedEventHandler(this.OnStrokeCollected); #line default #line hidden return; case 2: this.EditModeButton = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 88 "..\..\Window1.xaml" this.EditModeButton.Click += new System.Windows.RoutedEventHandler(this.EditModeClicked); #line default #line hidden return; case 3: this.DrawButtonImage = ((System.Windows.Controls.Grid)(target)); return; case 4: this.Pencil2 = ((System.Windows.Shapes.Path)(target)); return; case 5: #line 115 "..\..\Window1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.UndoClicked); #line default #line hidden return; case 6: this.Undo = ((System.Windows.Controls.Grid)(target)); return; case 7: this.Undo1 = ((System.Windows.Shapes.Path)(target)); return; case 8: this.CurrentColor = ((System.Windows.Shapes.Ellipse)(target)); #line 152 "..\..\Window1.xaml" this.CurrentColor.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnCurrentColorMouseDown); #line default #line hidden #line 153 "..\..\Window1.xaml" this.CurrentColor.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.OnMouseUp); #line default #line hidden #line 154 "..\..\Window1.xaml" this.CurrentColor.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.OnCurrentColorTouchDown); #line default #line hidden #line 155 "..\..\Window1.xaml" this.CurrentColor.LostMouseCapture += new System.Windows.Input.MouseEventHandler(this.OnCurrentColorLostMouseCapture); #line default #line hidden #line 156 "..\..\Window1.xaml" this.CurrentColor.LostTouchCapture += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.OnCurrentColorLostTouchCapture); #line default #line hidden #line 157 "..\..\Window1.xaml" this.CurrentColor.AddHandler(Microsoft.Surface.Presentation.Input.TouchExtensions.TapGestureEvent, new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.OnCurrentColorTap)); #line default #line hidden return; case 9: this.ColorWheel = ((System.Windows.Controls.Image)(target)); #line 166 "..\..\Window1.xaml" this.ColorWheel.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnColorWheelMouseDown); #line default #line hidden #line 167 "..\..\Window1.xaml" this.ColorWheel.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.OnMouseUp); #line default #line hidden #line 168 "..\..\Window1.xaml" this.ColorWheel.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.OnColorWheelTouchDown); #line default #line hidden #line 169 "..\..\Window1.xaml" this.ColorWheel.LostMouseCapture += new System.Windows.Input.MouseEventHandler(this.OnColorWheelLostMouseCapture); #line default #line hidden #line 170 "..\..\Window1.xaml" this.ColorWheel.LostTouchCapture += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.OnColorWheelLostTouchCapture); #line default #line hidden return; case 10: this.PhotoPadSVI = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 11: this.Photo = ((System.Windows.Controls.Image)(target)); return; case 12: this.PostcardCanvas = ((Microsoft.Surface.Presentation.Controls.SurfaceInkCanvas)(target)); return; case 13: #line 206 "..\..\Window1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.ClearClicked); #line default #line hidden return; case 14: this.X = ((System.Windows.Controls.Grid)(target)); return; case 15: this.X2 = ((System.Windows.Shapes.Path)(target)); return; case 16: #line 233 "..\..\Window1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.InkCanvasOnOffChanged); #line default #line hidden return; case 17: this.MoveButtonImage = ((System.Windows.Controls.Grid)(target)); return; case 18: this.Resize1 = ((System.Windows.Shapes.Path)(target)); return; case 19: this.Movie = ((System.Windows.Controls.MediaElement)(target)); #line 291 "..\..\Window1.xaml" this.Movie.MediaEnded += new System.Windows.RoutedEventHandler(this.OnMediaEnded); #line default #line hidden return; case 20: this.MovieCanvas = ((Microsoft.Surface.Presentation.Controls.SurfaceInkCanvas)(target)); #line 300 "..\..\Window1.xaml" this.MovieCanvas.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.OnMovieCanvasPreviewLeftMouseDown); #line default #line hidden #line 301 "..\..\Window1.xaml" this.MovieCanvas.PreviewMouseMove += new System.Windows.Input.MouseEventHandler(this.OnMovieCanvasPreviewMouseMove); #line default #line hidden #line 302 "..\..\Window1.xaml" this.MovieCanvas.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.OnMovieCanvasPreviewLeftMouseUp); #line default #line hidden #line 303 "..\..\Window1.xaml" this.MovieCanvas.PreviewTouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.OnMovieCanvasPreviewTouchDown); #line default #line hidden #line 304 "..\..\Window1.xaml" this.MovieCanvas.PreviewTouchMove += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.OnPreviewTouchMoveOrLostCapture); #line default #line hidden #line 305 "..\..\Window1.xaml" this.MovieCanvas.LostTouchCapture += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.OnPreviewTouchMoveOrLostCapture); #line default #line hidden return; case 21: this.RecordButton = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 311 "..\..\Window1.xaml" this.RecordButton.Click += new System.Windows.RoutedEventHandler(this.OnRecordButtonPressed); #line default #line hidden return; case 22: this.AnotateVideoImage = ((System.Windows.Controls.Grid)(target)); return; case 23: this.Pencil = ((System.Windows.Shapes.Path)(target)); return; case 24: this.PauseButton = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 338 "..\..\Window1.xaml" this.PauseButton.Click += new System.Windows.RoutedEventHandler(this.OnPauseButtonPressed); #line default #line hidden return; case 25: this.Pause = ((System.Windows.Controls.Grid)(target)); return; case 26: this.Rectangle_Copy2 = ((System.Windows.Shapes.Rectangle)(target)); return; case 27: this.Rectangle_Copy3 = ((System.Windows.Shapes.Rectangle)(target)); return; case 28: this.PlayButton = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); #line 373 "..\..\Window1.xaml" this.PlayButton.Click += new System.Windows.RoutedEventHandler(this.OnPlayButtonPressed); #line default #line hidden return; case 29: this.Play = ((System.Windows.Controls.Grid)(target)); return; case 30: this.Play1 = ((System.Windows.Shapes.Path)(target)); return; } this._contentLoaded = true; }
//---------------------------------------------------------// /// <summary> /// Creates puzzle pieces from a visual, and adds them into the ScatterView. /// </summary> /// <param name="visual"></param> void LoadVisualAsPuzzle(Visual visual, Direction fromDirection) { // The more columns/rows, the less each piece needs to overlap float rowOverlap = PuzzleManager.Overlap / rowCount; float colOverlap = PuzzleManager.Overlap / colCount; puzzleBrush = new VisualBrush(visual); // Tell the puzzle manager to load a puzzle with the specified dimensions puzzleManager.LoadPuzzle(colCount, rowCount); for (int row = 0; row < rowCount; row++) { for (int column = 0; column < colCount; column++) { // Calculate the size of the rectangle that will be used to create a viewbox into the puzzle image. // The size is specified as a percentage of the total image size. float boxLeft = (float) column / (float)colCount; float boxTop = (float) row / (float)rowCount; float boxWidth = 1f / colCount; float boxHeight = 1f / rowCount; // Items in column 0 don't have any male puzzle parts on their side, all others do if (column != 0) { boxLeft -= colOverlap; boxWidth += colOverlap; } // Items in row 0 don't have any male puzzle parts on their top, all others do if (row != 0) { boxTop -= rowOverlap; boxHeight += rowOverlap; } // Make a visual brush based on the rectangle that was just calculated. VisualBrush itemBrush = new VisualBrush(visual); itemBrush.Viewbox = new Rect(boxLeft, boxTop, boxWidth, boxHeight); itemBrush.ViewboxUnits = BrushMappingMode.RelativeToBoundingBox; // Get the shape of the piece Geometry shape = GetPieceGeometry(column, row); // Put the brush into a puzzle piece PuzzlePiece piece = new PuzzlePiece( column + (colCount * row), shape, itemBrush); // Add the PuzzlePiece to a ScatterViewItem SSC.ScatterViewItem item = new SSC.ScatterViewItem(); item.Content = piece; // Set the initial size of the item and prevent it from being resized item.Width = Math.Round(piece.ClipShape.Bounds.Width, 0); item.Height = Math.Round(piece.ClipShape.Bounds.Height, 0); item.CanScale = false; // Set the item's data context so it can use the piece's shape Binding binding = new Binding(); binding.Source = piece; item.SetBinding(ScatterViewItem.DataContextProperty, binding); // Animate the item into view AddPiece(item, fromDirection); } } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ContentSelector = ((Microsoft.Surface.Presentation.Controls.SurfaceListBox)(target)); #line 16 "..\..\Window1.xaml" this.ContentSelector.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.OnSelectionChanged); #line default #line hidden return; case 2: #line 20 "..\..\Window1.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceListBoxItem)(target)).Selected += new System.Windows.RoutedEventHandler(this.SurfaceListBoxItem_Selected); #line default #line hidden return; case 3: this.StudentCenterButton = ((System.Windows.Shapes.Path)(target)); #line 27 "..\..\Window1.xaml" this.StudentCenterButton.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 4: this.LibraryButton = ((System.Windows.Shapes.Path)(target)); #line 28 "..\..\Window1.xaml" this.LibraryButton.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.button_TouchDown); #line default #line hidden return; case 5: this.StudentCenter = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 6: this.Library = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 7: this.ContentArea = ((System.Windows.Controls.Grid)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.PlanTeam1Pic = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 2: this.Team1Image = ((System.Windows.Controls.Image)(target)); return; case 3: this.T1Ready = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; case 4: this.Sure1 = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)); return; case 5: #line 61 "..\..\PlanLayer.xaml" ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target)).Click += new System.Windows.RoutedEventHandler(this.NotYetButton_Click); #line default #line hidden return; case 6: this.T1NoAlert = ((Microsoft.Surface.Presentation.Controls.ScatterViewItem)(target)); return; } this._contentLoaded = true; }