Exemplo n.º 1
0
        public AffichageWindow(Affichage affichage)
        {
            InitializeComponent();

            labelMachineName.Content += affichage.MachineName;
            labelUser.Content += affichage.User;
            labelScript.Content += affichage.Script;
            labelDate.Content += affichage.Date;
            txtBoxMessage.Text += affichage.Message;
        }
Exemplo n.º 2
0
        private void OpenAffichageDeployScript()
        {
            if (listBoxAffichageDeployScript.SelectedItem != null)
            {
                string[] splitLine = listBoxAffichageDeployScript.SelectedItem.ToString().Split(']');
                splitLine[0] = splitLine[0].Replace('[', ' ').Trim();
                splitLine[1] = splitLine[1].Replace('[', ' ').Trim();
                splitLine[2] = splitLine[2].Replace('[', ' ').Trim();


                Affichage affichage = new Affichage();
                affichage.MachineName = splitLine[0];
                affichage.Date = splitLine[1];
                affichage.Message = splitLine[2];
                affichage.User = "******";
                affichage.Script = "-";

                AffichageWindow aw = new AffichageWindow(affichage);
                aw.ShowDialog();
            }
        }