using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace KGIS.Plugin.LayerProperty.View { public class DevExpressInputBox { private static FormInputBox frmInputBox; public static DialogResult InputBox(string Prompt, string Title, string DefaultResponse, out string Response) { if (DevExpressInputBox.frmInputBox == null) { DevExpressInputBox.frmInputBox = new FormInputBox(); } DevExpressInputBox.frmInputBox.InputBox(Prompt, Title, DefaultResponse); if (DevExpressInputBox.frmInputBox.ShowDialog() == DialogResult.OK) { Response = DevExpressInputBox.frmInputBox.InputMessage; return DialogResult.OK; } Response = string.Empty; return DialogResult.Cancel; } } }