* UIEditForm:增加一个扩展方法
This commit is contained in:
parent
d8ba6e7ffa
commit
0d48cca0f6
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -594,10 +594,15 @@ namespace Sunny.UI
|
||||
frm.TopMost = true;
|
||||
}
|
||||
|
||||
public static DialogResult ShowDialog(this UIEditOption option)
|
||||
public static bool ShowDialog(this UIEditOption option)
|
||||
{
|
||||
UIEditForm frm = new UIEditForm(option);
|
||||
return frm.ShowDialog();
|
||||
return frm.ShowDialog() == DialogResult.OK;
|
||||
}
|
||||
|
||||
public static UIEditForm Create(this UIEditOption option)
|
||||
{
|
||||
return new UIEditForm(option);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user