private void tsbNewFolder_Click(object sender, EventArgs e) { InputBox inputBox = new InputBox("Folder name", "Enter the name of the folder"); inputBox.ShowDialog(Application.OpenForms[0]); if (inputBox.DialogResult == DialogResult.OK) { templatesMenager.NewFolder(inputBox.InputTekst); } templatesMenager.LoadAll(); }