* UIEditForm:增加一个扩展方法

This commit is contained in:
Sunny 2021-03-06 11:40:20 +08:00
parent 0d48cca0f6
commit f60410b375
5 changed files with 1 additions and 7 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -594,13 +594,7 @@ namespace Sunny.UI
frm.TopMost = true;
}
public static bool ShowDialog(this UIEditOption option)
{
UIEditForm frm = new UIEditForm(option);
return frm.ShowDialog() == DialogResult.OK;
}
public static UIEditForm Create(this UIEditOption option)
public static UIEditForm CreateForm(this UIEditOption option)
{
return new UIEditForm(option);
}