public Form1()
        {
            InitializeComponent();
            textBox1.Text = timer1.Interval.ToString();
            deveServer = new DeveServer(1337);
            deveServer.Start();

            Task.Run(() => Runner());
        }
Exemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();
            textBox1.Text = timer1.Interval.ToString();
            deveServer = new DeveServer(1337);
            deveServer.Start();

            salc = new StoreAppListenerRouter(this);

            Task.Run(() => Runner());
        }
Exemplo n.º 3
0
        public ServerForm()
        {
            InitializeComponent();

            int port = 23415;
            //int port = 10239;
            deveServer = new DeveServer(port);
            deveServer.Start();

            Thread tr = new Thread(new ThreadStart(Runner));
            tr.Start();
        }
Exemplo n.º 4
0
        public Game1()
            : base()
        {
            fpsMeterStopwatch.Start();

            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            deveServer = new DeveServer(1337);
            deveServer.Start();

            this.graphics.PreferredBackBufferHeight = 768;
            this.graphics.PreferredBackBufferWidth = 1024;
        }
Exemplo n.º 5
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

            // Set our view from the "main" layout resource
            SetContentView (Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it

            deveServer = new DeveServer(1337);
            deveServer.Start();

            Thread tr = new Thread(Runner);
            tr.IsBackground = true;
            tr.Start();

            Button button = FindViewById<Button> (Resource.Id.myButton);
            button.Click += delegate {
                button.Text = string.Format ("{0} clicks!", count++);
                new Thread(()=>{
                    SendRandomSquirtle();
                }){IsBackground = true}.Start();

            };

            Button button2 = FindViewById<Button> (Resource.Id.myButton2);
            button2.Click += delegate {
                button2.Text = string.Format ("{0} clicks!", count2++);
                new Thread(()=>{
                    for (int i = 0; i < 1000; i++)
                    {
                        SendRandomSquirtle();

                    }
                }){IsBackground = true}.Start();

            };

            Button button3 = FindViewById<Button> (Resource.Id.myButton3);
            button3.Click += delegate {
                //button.Text = string.Format ("{0} clicks!", count2++);
                new Thread(()=>{
                    for (int i = 0; i < 100; i++)
                    {
                        SendRandomSquirtle();
                        Thread.Sleep(25);
                    }
                }){IsBackground = true}.Start();

            };

            Button button4 = FindViewById<Button> (Resource.Id.myButton4);
            button4.Click += delegate {
                //button.Text = string.Format ("{0} clicks!", count2++);
                new Thread(()=>{
                    for (int i = 0; i < 100; i++)
                    {
                        button5_Click(null,null);
                        Thread.Sleep(25);
                    }
                }){IsBackground = true}.Start();

            };

            Button button5 = FindViewById<Button> (Resource.Id.myButton5);
            button5.Click += delegate {
                //button.Text = string.Format ("{0} clicks!", count2++);
                new Thread(()=>{
                    for (int i = 0; i < 100; i++)
                    {
                        button3_Click(null,null);
                        Thread.Sleep(25);
                    }
                }){IsBackground = true}.Start();

            };
        }