示例#1
0
 public ViewModel_Table()
 {
     _flop1 = new ViewModel_Card();
     _flop2 = new ViewModel_Card();
     _flop3 = new ViewModel_Card();
     _turn  = new ViewModel_Card();
     _river = new ViewModel_Card();
     _board = new Tuple <ViewModel_Card, ViewModel_Card, ViewModel_Card, ViewModel_Card, ViewModel_Card>(new ViewModel_Card(), new ViewModel_Card(), new ViewModel_Card(), new ViewModel_Card(), new ViewModel_Card());
     ;
 }
示例#2
0
 // public List<Tuple<short,string,decimal>> listTable = new List<Tuple<short,string,decimal>>(); // seatno, playername,chipcount
 public ViewModel_Table(string UserName, IUserServices service)
 {
     base.UserName     = UserName;
     base.UserServices = service;
     _flop1            = new ViewModel_Card();
     _flop2            = new ViewModel_Card();
     _flop3            = new ViewModel_Card();
     _turn             = new ViewModel_Card();
     _river            = new ViewModel_Card();
     _board            = new Tuple <ViewModel_Card, ViewModel_Card, ViewModel_Card, ViewModel_Card, ViewModel_Card>(new ViewModel_Card(), new ViewModel_Card(), new ViewModel_Card(), new ViewModel_Card(), new ViewModel_Card());
     ;
 }
 public void CopyFrom(ViewModel_Card vm_card)
 {
     Rank = vm_card.Rank;
     Suit = vm_card.Suit;
 }