Beispiel #1
0
		/// <summary>
		/// Create a new game with the specified board.
		/// </summary>
		/// <param name="board">Board to set.</param>
		public BoardGame(Board board) {
			Board = board;

			Size = board.Size;
		}
Beispiel #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 4 "..\..\..\MainWindow.xaml"
     ((Tammi.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this._menu = ((System.Windows.Controls.Menu)(target));
     return;
     case 3:
     
     #line 43 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Save_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 45 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Print_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 48 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.NewGame_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 50 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Settings_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 53 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Help_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 55 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this._gameStatus = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this._board = ((Tammi.Board)(target));
     return;
     }
     this._contentLoaded = true;
 }