예제 #1
0
        public void PewMadness()
        {
            _clientNetwork.StartConnection("localhost", 9999, "Client", new CancellationTokenSource());

            var time = new TimeCounter(_timeSource);

            while (_isVisible)
            {
                TimeSpan timePassed = time.GetTimeSinceLastCall();
                _updateSutffAction(timePassed);
                _buffer.Render(CreateGraphics());
                Application.DoEvents();
            }
        }