Esempio n. 1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.chess = ((Lin.Chess.BattleChessView)(target));
     return;
     }
     this._contentLoaded = true;
 }
Esempio n. 2
0
 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();
 }