public void searchRunWorkerCompletedEventHandler(object sender, RunWorkerCompletedEventArgs e)
        {
            waitForm.Close();
            bool result = (bool)e.Result;

            if (!result)
            {
                MessageBox.Show("Not found");
            }
        }
Exemple #2
0
        public void extractFileRunWorkerCompletedEventHandler(object sender, RunWorkerCompletedEventArgs e)
        {
            bool result = (bool)e.Result;

            waitForm.Visible = false;
            waitForm.Close();

            if (result == false)
            {
                MessageBox.Show("Cannot extract file, Run this program as an administrator", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                analyzeFile();
            }
        }