Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            //ThreadStart t = new ThreadStart(connexionServeur);
            IvyComponent comp = IvyXMLParser.parseXML("test.xml");

            if (comp == null)
            {
                return;
            }

            content.Children.Add(comp.getComponent());

            Thread t = new Thread(new ThreadStart(delegate()
            {
                try
                {
                    act = new TestActivity(4);
                    act.connect();
                    act.waitForClients();
                }
                catch (Exception e)
                {
                    System.Windows.MessageBox.Show(e.StackTrace);
                }
            }));

            t.Start();
        }
Ejemplo n.º 2
0
 public Player(BaseActivity ba, int pIdx, IvySocket s)
 {
     act         = ba;
     playerIndex = pIdx;
     sock        = s;
 }
Ejemplo n.º 3
0
 public Player(BaseActivity ba, int pIdx, IvySocket s)
 {
     act = ba;
     playerIndex = pIdx;
     sock = s;
 }