예제 #1
0
        private void btnCreateIso_Click(object sender, EventArgs e)
        {
            mForm = new FormProcessOutput(mInputFolder, mOutputFile);
            mForm.Show();
            mForm.Refresh();
            mForm.TopMost = true;
            mForm.ProcessEnd +=new HandledEventHandler(mForm_ProcessEnd);

            this.Enabled = false;

            mForm.Start();
        }
예제 #2
0
        void mForm_ProcessEnd(object sender, HandledEventArgs e)
        {
            lblStatus.Text = "ISO image created at " + mOutputFile;

            //Clear everythign
            txtBoxInputFolder.Text = txtIsoImagePath.Text = string.Empty;
            mInputFolder = mOutputFile = string.Empty;
            lstFilesView.Items.Clear();
            btnCreateIso.Enabled = false;

            mForm.TopMost = false;
            mForm.Close();
            mForm = null;

            this.Enabled = true;
            this.Focus();
            Application.DoEvents();
        }