예제 #1
0
 /// <summary>
 /// 显示指定对话框方法
 /// </summary>
 /// <param name="dialog"></param>
 public void ShowDialog(ModalDialogBase dialog)
 {
     Dialogs.ForEach(d => d.IsShown = d == dialog);
     StateHasChanged();
 }
예제 #2
0
 /// <summary>
 /// 添加对话窗方法
 /// </summary>
 /// <param name="dialog"></param>
 public void AddDialog(ModalDialogBase dialog)
 {
     if (!Dialogs.Any()) dialog.IsShown = true;
     Dialogs.Add(dialog);
 }