static void Main(string[] args) { var scaleFactor = GetScaleFactor(); var fps = GetFPS(); var recorder = new Recorder(scaleFactor, fps); recorder.Start(3000); var commandListener = new CommandListener(); commandListener.Start(3001); commandListener.OnMouseDown = OnMouseDown; commandListener.OnMouseUp = OnMouseUp; commandListener.ListenForCommands(); Console.WriteLine("Server started! Listening for connections..."); Console.ReadLine(); }