public FormConsole(SousMarin parent)
        {
            InitializeComponent();

            this.parent = parent;
            blockInt = false;

            oldSize = textConsole.Lines.Length;
            envoiConsole.KeyDown += new KeyEventHandler(envoiConsole_KeyDown);
            textConsole.TextChanged += new EventHandler(textConsole_TextChanged);
        }
        private void CreerSM()
        {
            Main_BarreStatut_Texte1.Text = NomFichierXML;
            Main_BarreMenu_SousMarin_Nouveau.Enabled = false;
            Main_BarreMenu_SousMarin_Fermer.Enabled = true;
            Main_BarreMenu_SousMarin_Supprimer.Enabled = true;
            Main_BarreMenu_Options.Enabled = true;

            if (SM == null)
            {
                SM = new SousMarin(this, NomFichierXML);
            }
            else
            {
                SM.initialisation(this, NomFichierXML);
            }
        }
        //, ref bool flag_A)
        public BO_serie(SousMarin cs_parent, int cs_baudrate, int cs_nbBits, string cs_parite, string cs_stopBits, int cs_readBufferSize, int cs_writeBufferSize, int cs_readTimeOut, int cs_writeTimeOut)
        {
            parent = cs_parent;

            Console = new FormConsole(parent);

            dataSerie = new String("".ToCharArray());
            baudrate = cs_baudrate;
            nbBits = cs_nbBits;
            parite = cs_parite;
            stopBits = cs_stopBits;
            readBufferSize = cs_readBufferSize;
            readTimeOut = cs_readTimeOut;
            writeBufferSize = cs_writeBufferSize;
            writeTimeOut = cs_writeTimeOut;

            serialPort = new SerialPort();
            tableau_de_donnee = new BO_tableau();

            DemandePortCom = new FormPortCom(this);
            DemandePortCom.ShowDialog();
        }
        public BO_Graphes(SousMarin parent)
        {
            this.parent = parent;

            Graphiques = new FormGraphiques(this);

            BaseDeDonnees = new BD();
            BaseDeDonnees.connexion();

            TimerRafraichissementGraphes = new Timer();
            TimerRafraichissementGraphes.Tick += new EventHandler(TimerRafraichissementGraphes_Tick);

            // procedure de test
            //BaseDeDonnees.SupprimerContenuTable("PositionBallast1");
            //BaseDeDonnees.IDnulTable("PositionBallast1");
            //BaseDeDonnees.AjoutValeur("PositionBallast1", 13);
            //MessageBox.Show("ID :" + BaseDeDonnees.DernierID("PositionBallast2"));
            //MessageBox.Show("ID :" + BaseDeDonnees.DernierID("PositionBallast1"));
            //MessageBox.Show("Valeur0 :" + BaseDeDonnees.LireValeur("PositionBallast1", 0));
            //MessageBox.Show("Valeur1 :" + BaseDeDonnees.LireValeur("PositionBallast1", 1));
            //MessageBox.Show("Valeurlast :" + BaseDeDonnees.LireValeur("PositionBallast1", BaseDeDonnees.DernierID("PositionBallast1")));
        }
 public FormTelecommande(SousMarin parent)
 {
     InitializeComponent();
     this.parent = parent;
 }
 public FormMain()
 {
     InitializeComponent();
     SM = null;
 }