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