예제 #1
0
        private void btnOpenNewWindow_Click(object sender, EventArgs e)
        {
            Form FormInfoExt = new FormInfoExt(txtOutput.Text);

            FormInfoExt.Show();
        }
예제 #2
0
        /// <summary>
        /// Execute DISM pour recuperer les infos de l'image selectionne 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnGetInfo_Click(object sender, EventArgs e)
        {
            string command = "/Get-WimInfo /wimfile:", arguments = "", output;

            arguments = txtPathInfo.Text;
            command = (command + "\"" + arguments + "\"");

            output = DISM(command);
            txtOutput.Text = output;

            if (output.Contains("Erreur : "))
                MessageBox.Show("Attention une erreure s'est produite", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Error);
            else
                MessageBox.Show("Commande réalisée\nVoir resultat", "GraphDISM");

            if (chkOpenNewFormInfo.Checked)
            {

                Form FormInfoExt = new FormInfoExt(output);
                FormInfoExt.Show();
            }
        }