Beispiel #1
0
        private void btnShowMsi_Click(object sender, EventArgs e)
        {
            string msiFile = null;

            if (rbtnAdapter.Checked)
            {
                return;
            }

            msiFile = GetMsiFilePath();
            if (null == msiFile)
            {
                btnInstall.Enabled = false;
                btnRemove.Enabled  = false;
                btnStop.Enabled    = false;
                btnStart.Enabled   = false;
                btnRecycle.Enabled = false;
                txtMsiPath.Clear();
                txtMsiFileName.Clear();
                return;
            }

            LoadingBox frm = new LoadingBox(msiFile);

            frm.Show(this);
            Application.DoEvents();
            frmInstalledPackages form = new frmInstalledPackages(msiFile);

            frm.Close();
            form.ShowDialog(this);
        }
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     adamForm.Close();
     loadingBox.Close();
 }