public UI_Sensor(BO_Commands serialCommand)
        {
            InitializeComponent();

            this._MyThreadHandle            = new MyThreadHandle(serialCommand, this);
            this._thread                    = new Thread(new ThreadStart(this._MyThreadHandle.ThreadLoop));
            CheckForIllegalCrossThreadCalls = false;
            this._thread.Start();
        }
Exemple #2
0
        public UI_Remote(BO_Commands serialCommand)
        {
            this._serialCommand = serialCommand;
            InitializeComponent();

            this.rbtnVider.Checked = true;
            this.rbtnAvant.Checked = true;
            this.SetEnabledControl(false);
            //this.cbPortComNames.Items.AddRange(this._serialCommand.GetPortNames());
            //this.cbBaudRate.Items.Add("300");
            //this.cbBaudRate.Items.Add("9600");
        }
        public UI_Remote(BO_Commands serialCommand)
        {
            this._serialCommand = serialCommand;
            InitializeComponent();

            this.rbtnVider.Checked = true;
            this.rbtnAvant.Checked = true;
            this.SetEnabledControl(false);
            //this.cbPortComNames.Items.AddRange(this._serialCommand.GetPortNames());
            //this.cbBaudRate.Items.Add("300");
            //this.cbBaudRate.Items.Add("9600");
        }
        public UI_SerialPort(BO_Commands cmd, FormMain parent)
        {
            InitializeComponent();

            this._cmd = cmd;
            this._parent = parent;

            this.rbtnBluetooth.Select();
            this.cbPortComNames.Items.AddRange(this._cmd.GetPortNames());
            this.cbPortComNames.SelectedIndex = 0;
            this.cbBaudrate.SelectedIndex = 5;
            this.cbDataBits.SelectedIndex = 3;
            this.cbParity.SelectedIndex = 2;
            this.cbStopBits.SelectedIndex = 1;

            this.numUpDwnInputBuffer.Value = 4096;
            this.numUpDwnOutputBuffer.Value = 2048;

            this.numUpDwnTimeoutIn.Value = 500;
            this.numUpDwnTimeoutOut.Value = -1;
        }
        public UI_SerialPort(BO_Commands cmd, FormMain parent)
        {
            InitializeComponent();

            this._cmd    = cmd;
            this._parent = parent;

            this.rbtnBluetooth.Select();
            this.cbPortComNames.Items.AddRange(this._cmd.GetPortNames());
            this.cbPortComNames.SelectedIndex = 0;
            this.cbBaudrate.SelectedIndex     = 5;
            this.cbDataBits.SelectedIndex     = 3;
            this.cbParity.SelectedIndex       = 2;
            this.cbStopBits.SelectedIndex     = 1;

            this.numUpDwnInputBuffer.Value  = 4096;
            this.numUpDwnOutputBuffer.Value = 2048;

            this.numUpDwnTimeoutIn.Value  = 500;
            this.numUpDwnTimeoutOut.Value = -1;
        }
        //public SousMarin SM;

        public FormMain()
        {
            //NomFichierXML = Application.StartupPath + "\\TestSM.xml";

            InitializeComponent();
            //SM = null;

            this._cmd = new BO_Commands();

            this._remote           = new UI_Remote(this._cmd);
            this._remote.MdiParent = this;
            this._remote.Show();
            this._sensor           = new UI_Sensor(this._cmd);
            this._sensor.MdiParent = this;
            this._sensor.Show();
            //this._console = new FormConsole();
            //this._console.MdiParent = this;
            //this._console.Show();

            this._serialPort           = new UI_SerialPort(this._cmd, this);
            this._serialPort.MdiParent = this;
            this._serialPort.Show();
        }
        //public SousMarin SM;
        public FormMain()
        {
            //NomFichierXML = Application.StartupPath + "\\TestSM.xml";

            InitializeComponent();
            //SM = null;

            this._cmd = new BO_Commands();

            this._remote = new UI_Remote(this._cmd);
            this._remote.MdiParent = this;
            this._remote.Show();
            this._sensor = new UI_Sensor(this._cmd);
            this._sensor.MdiParent = this;
            this._sensor.Show();
            //this._console = new FormConsole();
            //this._console.MdiParent = this;
            //this._console.Show();

            this._serialPort = new UI_SerialPort(this._cmd, this);
            this._serialPort.MdiParent = this;
            this._serialPort.Show();
        }
 // Constructeur
 public MyThreadHandle(BO_Commands myParam, UI_Sensor parent)
 {
     this._serialCommands = myParam;
     this._UI_Sensor_parent = parent;
 }
        public UI_Sensor(BO_Commands serialCommand)
        {
            InitializeComponent();

            this._MyThreadHandle = new MyThreadHandle(serialCommand, this);
            this._thread = new Thread(new ThreadStart(this._MyThreadHandle.ThreadLoop));
            CheckForIllegalCrossThreadCalls = false;
            this._thread.Start();
        }
 // Constructeur
 public MyThreadHandle(BO_Commands myParam, UI_Sensor parent)
 {
     this._serialCommands   = myParam;
     this._UI_Sensor_parent = parent;
 }