Exemple #1
0
 public void Subscribe(GameControl game)
 {
     game.UpdateLog += new EventHandler(game_UpdateLog);
 }
Exemple #2
0
 public Loader(MainForm form, GameControl _game)
 {
     game     = _game;
     mainform = form;
     mainform.loader.FileOk += new System.ComponentModel.CancelEventHandler(loader_FileOk);
 }
Exemple #3
0
 public AIPlayer(String _name, int _stack, GameControl game)
     : base(_name, _stack, game)
 {
     timer.Tick += new EventHandler(timer_Tick);
 }
Exemple #4
0
 public Render(GameControl _game, MainForm _mainform)
 {
     game     = _game;
     mainform = _mainform;
 }
Exemple #5
0
 public void Subscribe(GameControl game)
 {
     game.DeliveryBatonToPlayer += new EventHandler(table_BatonMoved);
 }
Exemple #6
0
 public void Unsubscribe(GameControl game)
 {
     game.DeliveryBatonToPlayer -= new EventHandler(table_BatonMoved);
     timer.Enabled = false;
 }
Exemple #7
0
 public void Unsubscribe(GameControl game)
 {
     game.GameEnd -= new EventHandler(game_GameEnd);
     game.Unsubscribe(game);
 }
Exemple #8
0
 public MainForm()
 {
     InitializeComponent();
     game = new GameControl(ngform, this);
     Subscribe(game);
 }
Exemple #9
0
 public void Subscribe(GameControl game)
 {
     game.GameEnd += new EventHandler(game_GameEnd);
 }