예제 #1
0
        private void btn_envoyer_Click(object sender, RoutedEventArgs e)
        {
            infoTrain          = new InfoTrain();
            infoTrain.ligne    = cmb_ligne.Text;
            infoTrain.id_train = Int32.Parse(txt_id_train.Text);
            //infoTrain.horaire = (DateTime) date_picker.SelectedDate;
            infoTrain.direction = txt_direction.Text;
            infoTrain.voie      = txt_voie.Text;
            infoTrain.info      = txt_info.Text;

            string msg = SerialisationTool.serialiser(infoTrain);

            publisher.sendMsg(msg);
        }
        public void envoyer_message(object parameter)
        {
            string msg = SerialisationTool.serialiser((InfoTrain)parameter); //transformation du message en string serialisation

            publisher.sendMsg(msg);
        }
예제 #3
0
        public void envoyer_message(object parameter)
        {
            string msg = SerialisationTool.serialiser((InfoTrain)parameter);

            publisher.sendMsg(msg);
        }