Files
aistudio-wpf-diagram/AIStudio.Wpf.DiagramDesigner/Services/IUIVisualizerService.cs
2023-05-01 23:07:19 +08:00

30 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AIStudio.Wpf.DiagramDesigner.Services
{
/// <summary>
/// This interface defines a UI controller which can be used to display dialogs
/// in either modal form from a ViewModel.
/// </summary>
public interface IUIVisualizerService
{
/// <summary>
/// This method displays a modal dialog associated with the given key.
/// </summary>
/// <param name="dataContextForPopup">Object state to associate with the dialog</param>
/// <returns>True/False if UI is displayed.</returns>
bool? ShowDialog(object dataContextForPopup);
/// <summary>
/// This method displays a modal dialog associated with the given key.
/// </summary>
/// <param name="dataContextForPopup">Object state to associate with the dialog</param>
/// <returns>True/False if UI is displayed.</returns>
bool? ShowDialog(object dataContextForPopup, double width, double height);
}
}