public void ShowDialog(ISSView view) { Contract.Requires(view != null); var dialog = new MahApps.Metro.Controls.Dialogs.CustomDialog(); dialog.DialogTop = view; _dialogs.Add(view,dialog); this.ShowMetroDialogAsync(dialog); }
public void HideDialog(ISSView view) { Contract.Requires(view != null); Contract.Assert(!_dialogs.ContainsKey(view)); var dialog = _dialogs[view]; _dialogs.Remove(view); this.HideMetroDialogAsync(dialog); }
public void ShowDialog(ISSView view) { Contract.Requires(view != null); var dialog = new MahApps.Metro.Controls.Dialogs.CustomDialog(); dialog.DialogTop = view; _dialogs.Add(view, dialog); this.ShowMetroDialogAsync(dialog); }
/// /// <param name="view"></param> public virtual void HideDialog(ISSView view) { _parentViewModel?.HideDialog(view); }
/// /// <param name="view"></param> public virtual void ShowDialog(ISSView view) { _parentViewModel?.ShowDialog(view); }
/// /// <param name="view"></param> public override void HideDialog(ISSView view) { }