private void Form1_FormClosing(object sender, FormClosingEventArgs e) { video_interval.Enabled = false; ServerHttpListener.StopThread(); _controller.Exit(); // TODO: Implements automatic bind devices //_controller.ctxApp.Config.Ctx.Devices = DeviceController.BindDeviceConfiguration(); _controller.SaveConfig(); }