public static string ShowUserInputText(string label, InputBoxText.ValidateEntry validator, string title = "")
 {
     using (var input = new InputBoxText(label, validator, title))
     {
         input.ShowDialog(Instance);
         return(input.GetResult());
     }
 }
        private void copyAsOverrideToolStripMenuItem_Click(object sender, System.EventArgs e)
        {
            InputBoxText.ValidateEntry validator = delegate(string text)
            {
                if (text.IndexOfAny(Path.GetInvalidFileNameChars()) < 0 && !File.Exists(Path.Combine(Settings.DataPath, text)))
                {
                    return(true);
                }
                return(false);
            };
            var result = EspSharpGui.ShowUserInputText("Plugin name:", validator);

            var plugin = new ElderScrollsPlugin(result + ".esp");
        }