Example #1
0
 public GameForm(NetworkStream ns)
 {
     this.ns = ns;
     InitializeComponent();
     this.DoubleBuffered = true;
     this.Size           = new Size(GameC.Width, GameC.Height);
     callForm            = new CallForm(ns, "Place your call");
 }
Example #2
0
        public void GameLoop()
        {
            Application.Run(callForm);
            call = (Call)bf.Deserialize(ns);
            string title = (string)bf.Deserialize(ns);

            if (!title.Equals("pass"))
            {
                callForm = new CallForm(ns, title);
                Application.Run(callForm);
            }
            this.Text = call.ToString();
            StartGame();
        }