public ApplicationForm()
        {
            this.tempGraph         = new TemperatureGraphForm();
            this.bluetoothCommPort = new BluetoothCommPort(this, tempGraph);
            this.serialPort        = new SerialPort();
            this.bluetoothMessageDeserialization = new MessageDeserialization();
            InitializeComponent();


            this.bluetoothTimer          = new System.Timers.Timer();
            this.bluetoothTimer.Interval = 1000;
            this.bluetoothTimer.Elapsed += BluetoothKeepAlive;
        }
        public BluetoothCommPort(ApplicationForm bluetoothForm, TemperatureGraphForm tempGraph)
        {
            this.btForm    = bluetoothForm;
            this.tempGraph = tempGraph;

            this.BluetoothClient           = null;
            this.BluetoothListener         = null;
            this.BluetoothTransmitter      = null;
            this.BluetoothReceiver         = null;
            this.BluetoothDeviceRepository = new BluetoothDeviceRepository();
            this.BluetoothDeviceScanner    = new BluetoothDeviceScanner(bluetoothForm);

            this.messageDeserialization = new MessageDeserialization();
            this.messageDecoder         = new MessageDecoder();
            this.TransmitBuffer         = new byte[1024];
            this.Pin = "1234";
        }