public void Show(string caption, string message, DialogType type, bool showOk, bool showCancel, Action<bool> closeAction)
 {
     var dialog = new Dialog(showCancel, type) {Caption = caption, Message = message, CloseAction = closeAction};
     dialog.Closed += new EventHandler(OnDialogClosed);
     ParentGrid.Children.Add(dialog);
     dialog.Show();
 }
 public void Show(string caption, string message, DialogType type, bool showOk, bool showCancel)
 {
     var dialog = new Dialog(showCancel, type) { Caption = caption, Message = message };
     ParentGrid.Children.Add(dialog);
     dialog.Show();
 }