You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|