public VehicleSeparationDisplay() { InitializeComponent(); this.Information = null; this.comms = new Communicator(this); // set our style base.SetStyle(ControlStyles.UserPaint, true); base.SetStyle(ControlStyles.AllPaintingInWmPaint, true); base.SetStyle(ControlStyles.Opaque, true); base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); base.SetStyle(ControlStyles.ResizeRedraw, true); base.SetStyle(ControlStyles.Selectable, true); Thread t = new Thread(ForceRedraw); t.IsBackground = true; t.Start(); client = new PoseClient(IPAddress.Parse("239.132.1.33"), 4839); client.PoseAbsReceived += new EventHandler <PoseAbsReceivedEventArgs>(client_PoseAbsReceived); client.Start(); }
public void Start() { client.Start(); }