void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.chess = ((Lin.Chess.BattleChessView)(target)); return; } this._contentLoaded = true; }
public BattleChessControl(BattleChessView view) : base(view.Chessboard) { this.view = view; //battleSituation = view.Chessboard.Situation.clone(); battleSituation = new BattleSituation(view.Chessboard.Situation.clone(),view.Side); InitBattle(); //InitEvaluate(); }