private void openGeneratedFileButton_Click(object sender, EventArgs e) { var splashScreen = new SplashScreen(); splashScreen.Show(); splashScreen.Update(); if (openGeneratedFileDialog.ShowDialog() == DialogResult.OK) { var filename = openGeneratedFileDialog.FileName; if (_generatedFile == null) { _generatedFile = new GeneratedFile(true); } _generatedFile.OpenFile(filename); if (_generatedFile.IsGenerated) { showStructureButton.Enabled = true; hashAnaliseButton.Enabled = true; searchAnaliseButton.Enabled = false; KeySearchButton.Enabled = true; openDopArrayButton.Enabled = true; generateDopArrayButton.Enabled = true; } } splashScreen.Close(); }