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