Exemplo n.º 1
0
 /// <summary>
 /// Updates data contexts when a new case is selected.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void CaseSelected(object sender, CaseSelectedEventArgs e)
 {
     _caseInformation.DataContext            = _unitActions.DataContext = (e.IsDeselection ? null : new CaseView(_game, e.SelectedCase));
     _lastSelectedCases[_game.CurrentPlayer] = e.SelectedCase;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Updates data contexts when a new case is selected.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void CaseSelected(object sender, CaseSelectedEventArgs e)
 {
     _caseInformation.DataContext = _unitActions.DataContext = (e.IsDeselection ? null : new CaseView(_game, e.SelectedCase));
     _lastSelectedCases[_game.CurrentPlayer] = e.SelectedCase;
 }