C# Class Sanguosha.UI.Controls.TwoSidesCardChoiceBox

Interaction logic for TwoSidesCardChoice.xaml
Inheritance: System.Windows.Controls.UserControl
Mostra file Open project: RagingBigFemaleBird/sgs

Public Methods

Method Description
PickCard ( bool isMainPlayer, int cardIndex ) : void

Pick a card from card repo to the row on the specified player's side.

StartCountDown ( bool isMainPlayer, int timeOutSeconds ) : void
TwoSidesCardChoiceBox ( ) : System
TwoSidesCardChoiceBox_DataContextChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
UpdateModel ( ) : void

Private Methods

Method Description
model_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Method Details

PickCard() public method

Pick a card from card repo to the row on the specified player's side.
public PickCard ( bool isMainPlayer, int cardIndex ) : void
isMainPlayer bool
cardIndex int
return void

StartCountDown() public method

public StartCountDown ( bool isMainPlayer, int timeOutSeconds ) : void
isMainPlayer bool
timeOutSeconds int
return void

TwoSidesCardChoiceBox() public method

public TwoSidesCardChoiceBox ( ) : System
return System

TwoSidesCardChoiceBox_DataContextChanged() public method

public TwoSidesCardChoiceBox_DataContextChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
sender object
e System.Windows.DependencyPropertyChangedEventArgs
return void

UpdateModel() public method

public UpdateModel ( ) : void
return void