mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-16 14:16:36 +08:00
添加几个参数
This commit is contained in:
@@ -17,7 +17,7 @@ namespace AIStudio.Wpf.DiagramDesigner.Services
|
||||
/// </summary>
|
||||
/// <param name="dataContextForPopup">Object state to associate with the dialog</param>
|
||||
/// <returns>True/False if UI is displayed.</returns>
|
||||
bool? ShowDialog(object dataContextForPopup);
|
||||
bool? ShowDialog(object dataContextForPopup, bool buttonVisable = true);
|
||||
|
||||
/// <summary>
|
||||
/// This method displays a modal dialog associated with the given key.
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AIStudio.Wpf.DiagramDesigner.Services
|
||||
/// </summary>
|
||||
/// <param name="dataContextForPopup">Object state to associate with the dialog</param>
|
||||
/// <returns>True/False if UI is displayed.</returns>
|
||||
public bool? ShowDialog(object dataContextForPopup)
|
||||
public bool? ShowDialog(object dataContextForPopup, bool buttonVisable = true)
|
||||
{
|
||||
Window win = new PopupWindow();
|
||||
win.DataContext = dataContextForPopup;
|
||||
|
||||
Reference in New Issue
Block a user