private void loadButton_Click(object sender, EventArgs e) { if (pathTextBox.Text == null || pathTextBox.Text.Length <= 0) { statusLabel.Text = "ERROR: No folder path selected"; } else if (!Directory.Exists(pathTextBox.Text)) { statusLabel.Text = "ERROR: No folder path selected"; } else { engine.LoadFolder(pathTextBox.Text); statusLabel.Text = "Loaded successfully!"; } }