Esempio n. 1
0
        private void InvokePawnFigureTransformationEvent(PawnFigureTransformationEventArgs e)
        {
            EventHandler <PawnFigureTransformationEventArgs> handler = PawnFigureTransformationEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 private void PawnFigureNearBoard(object source, PawnFigureTransformationEventArgs args)
 {
     if (!_makeTurnFromInputController)
     {
         PawnTransformationViewModel = new PawnTransformationViewModel(IsWhiteGo, this.Cells.First(rec => rec.Cell == args.Cell));
         PawnTransformationViewModel.PawnTransformationDoneEvent += SendTurnToInputController;
         _isPawnTransformation = true;
         RaisePropertyChanged("PawnTransformationViewModel");
     }
 }