Intersoft.Client.UI.Aqua.UXDesktop Namespace > UXDialogBox Class : ShowDialog Method |
Public Sub ShowDialog( _ ByVal owner As IWindow, _ ByVal closeCallback As Action(Of DialogResult) _ )
Dim instance As UXDialogBox Dim owner As IWindow Dim closeCallback As Action(Of DialogResult) instance.ShowDialog(owner, closeCallback)
public void ShowDialog( IWindow owner, Action<DialogResult> closeCallback )
public: void ShowDialog( IWindow^ owner, Action<DialogResult>^ closeCallback )
private void UXButton1_Click(object sender, RoutedEventArgs e) { EditDialogBox dialogBox = new EditDialogBox(); dialogBox.ShowDialog( // show dialog box in standalone mode null, // callback handler for the close event (dialogResult) => { if (dialogResult == Intersoft.Client.Framework.DialogResult.OK) { MessageBox.Show("The dialog box result is OK"); } }); }
private void uXButton1_Click(object sender, RoutedEventArgs e) { EditDialogBox dialogBox = new EditDialogBox(); UXDesktop currentDesktop = this.GetDesktop(); dialogBox.ShowDialog( // show dialog box attached to the wndHome. currentDesktop.FindWindow("wndHome"), // callback handler for the close event (dialogResult) => { if (dialogResult == Intersoft.Client.Framework.DialogResult.OK) { MessageBox.Show("The dialog box result is OK"); } }); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2