示例#1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.alusta = ((memory.MemoryBoard)(target));
         return;
     }
     this._contentLoaded = true;
 }
示例#2
0
 /// <summary>
 /// parameterized constructor to receive reference to board
 /// </summary>
 /// <param name="gameboard"></param>
 public MemoryGame(UserControl gameboard)
 {
     this.board = (MemoryBoard)gameboard;
 }