Пример #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 14 "..\..\..\MainWindow.xaml"
     ((ActPlayResponsibly2012.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.WindowLoaded);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 16 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanCloseExecute);
     
     #line default
     #line hidden
     
     #line 16 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CloseExecuted);
     
     #line default
     #line hidden
     return;
     case 3:
     this.image = ((System.Windows.Controls.Image)(target));
     return;
     case 4:
     
     #line 79 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.WindowDragMove);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 80 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.MaximizeWindow);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 88 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Canvas)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.TeamAvatarMouseMove);
     
     #line default
     #line hidden
     return;
     case 7:
     this.GameBoard = ((System.Windows.Controls.Image)(target));
     return;
     case 8:
     
     #line 115 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 116 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 117 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 118 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 126 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DiceThrowing);
     
     #line default
     #line hidden
     return;
     case 13:
     this.label = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     
     #line 146 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 15:
     
     #line 147 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 16:
     
     #line 148 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 17:
     
     #line 149 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 18:
     
     #line 150 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 19:
     
     #line 151 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 20:
     
     #line 152 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 21:
     
     #line 153 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 22:
     
     #line 154 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 23:
     
     #line 155 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 24:
     this.TeamMoveSelector = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 25:
     
     #line 207 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 26:
     
     #line 209 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 27:
     
     #line 210 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 28:
     
     #line 211 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 29:
     
     #line 212 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 30:
     
     #line 213 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 31:
     
     #line 214 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 32:
     
     #line 215 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 33:
     
     #line 216 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 34:
     
     #line 217 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 35:
     
     #line 218 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 36:
     
     #line 219 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 37:
     
     #line 221 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 38:
     
     #line 222 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 39:
     
     #line 223 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 40:
     
     #line 224 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 41:
     
     #line 225 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 42:
     
     #line 226 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 43:
     
     #line 227 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 44:
     
     #line 228 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 45:
     
     #line 229 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 46:
     
     #line 230 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 47:
     
     #line 231 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 48:
     
     #line 233 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 49:
     
     #line 234 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 50:
     
     #line 235 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 51:
     
     #line 236 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 52:
     
     #line 237 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 53:
     
     #line 238 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 54:
     
     #line 239 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 55:
     
     #line 240 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 56:
     
     #line 241 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 57:
     
     #line 242 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 58:
     
     #line 243 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFlashMesages);
     
     #line default
     #line hidden
     return;
     case 59:
     
     #line 245 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 60:
     
     #line 246 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 61:
     
     #line 247 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 62:
     
     #line 248 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 63:
     
     #line 249 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 64:
     
     #line 250 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 65:
     
     #line 251 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 66:
     
     #line 252 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 67:
     
     #line 253 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 68:
     
     #line 254 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 69:
     this.DragableContent = ((System.Windows.Controls.Canvas)(target));
     
     #line 256 "..\..\..\MainWindow.xaml"
     this.DragableContent.MouseMove += new System.Windows.Input.MouseEventHandler(this.TeamAvatarMouseMove);
     
     #line default
     #line hidden
     return;
     case 70:
     this.RedAvatar = ((System.Windows.Controls.Image)(target));
     return;
     case 71:
     this.GreenAvatar = ((System.Windows.Controls.Image)(target));
     return;
     case 72:
     this.BlueAvatar = ((System.Windows.Controls.Image)(target));
     return;
     case 73:
     this.YellowAvatar = ((System.Windows.Controls.Image)(target));
     return;
     case 74:
     this.QuestionView = ((ActPlayResponsibly2012.Questions.QuestionView)(target));
     return;
     case 75:
     this.FlashMessageView = ((ActPlayResponsibly2012.FlashMessages.FlashMessageView)(target));
     return;
     }
     this._contentLoaded = true;
 }
Пример #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 13 "..\..\..\MainWindow.xaml"
     ((ActPlayResponsibly2012.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.WindowLoaded);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 15 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanCloseExecute);
     
     #line default
     #line hidden
     
     #line 15 "..\..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CloseExecuted);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 62 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.WindowDragMove);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 63 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.MaximizeWindow);
     
     #line default
     #line hidden
     return;
     case 5:
     this.DragableContent = ((System.Windows.Controls.Grid)(target));
     
     #line 71 "..\..\..\MainWindow.xaml"
     this.DragableContent.MouseMove += new System.Windows.Input.MouseEventHandler(this.TeamAvatarMouseMove);
     
     #line default
     #line hidden
     return;
     case 6:
     this.GameBoard = ((System.Windows.Controls.Image)(target));
     return;
     case 7:
     
     #line 73 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Border)(target)).MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.TeamAvatarMouseUp);
     
     #line default
     #line hidden
     
     #line 73 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Border)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TeamAvatarMouseDown);
     
     #line default
     #line hidden
     
     #line 73 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Border)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.TeamAvatarMouseMove);
     
     #line default
     #line hidden
     return;
     case 8:
     this.RedAvatar = ((System.Windows.Controls.Image)(target));
     return;
     case 9:
     
     #line 76 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Border)(target)).MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.TeamAvatarMouseUp);
     
     #line default
     #line hidden
     
     #line 76 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Border)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TeamAvatarMouseDown);
     
     #line default
     #line hidden
     
     #line 76 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Border)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.TeamAvatarMouseMove);
     
     #line default
     #line hidden
     return;
     case 10:
     this.GreenAvatar = ((System.Windows.Controls.Image)(target));
     return;
     case 11:
     
     #line 79 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Border)(target)).MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.TeamAvatarMouseUp);
     
     #line default
     #line hidden
     
     #line 79 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Border)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TeamAvatarMouseDown);
     
     #line default
     #line hidden
     
     #line 79 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Border)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.TeamAvatarMouseMove);
     
     #line default
     #line hidden
     return;
     case 12:
     this.BlueAvatar = ((System.Windows.Controls.Image)(target));
     return;
     case 13:
     
     #line 82 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Border)(target)).MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.TeamAvatarMouseUp);
     
     #line default
     #line hidden
     
     #line 82 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Border)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TeamAvatarMouseDown);
     
     #line default
     #line hidden
     
     #line 82 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Border)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.TeamAvatarMouseMove);
     
     #line default
     #line hidden
     return;
     case 14:
     this.YellowAvatar = ((System.Windows.Controls.Image)(target));
     return;
     case 15:
     
     #line 92 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DiceThrowing);
     
     #line default
     #line hidden
     return;
     case 16:
     this.Red = ((System.Windows.Controls.Button)(target));
     
     #line 141 "..\..\..\MainWindow.xaml"
     this.Red.Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 17:
     this.Green = ((System.Windows.Controls.Button)(target));
     
     #line 142 "..\..\..\MainWindow.xaml"
     this.Green.Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 18:
     this.Blue = ((System.Windows.Controls.Button)(target));
     
     #line 143 "..\..\..\MainWindow.xaml"
     this.Blue.Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 19:
     this.Yellow = ((System.Windows.Controls.Button)(target));
     
     #line 144 "..\..\..\MainWindow.xaml"
     this.Yellow.Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 20:
     this.Gray = ((System.Windows.Controls.Button)(target));
     
     #line 145 "..\..\..\MainWindow.xaml"
     this.Gray.Click += new System.Windows.RoutedEventHandler(this.ShowQuestion);
     
     #line default
     #line hidden
     return;
     case 21:
     this.QuestionView = ((ActPlayResponsibly2012.Questions.QuestionView)(target));
     return;
     }
     this._contentLoaded = true;
 }