Example #1
0
 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);
 }
Example #2
0
 public void HideDialog(ISSView view)
 {
     Contract.Requires(view != null);
     Contract.Assert(!_dialogs.ContainsKey(view));
     var dialog = _dialogs[view];
     _dialogs.Remove(view);
     this.HideMetroDialogAsync(dialog);
 }
Example #3
0
        public void HideDialog(ISSView view)
        {
            Contract.Requires(view != null);
            Contract.Assert(!_dialogs.ContainsKey(view));
            var dialog = _dialogs[view];

            _dialogs.Remove(view);
            this.HideMetroDialogAsync(dialog);
        }
Example #4
0
        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);
        }
Example #5
0
 ///
 /// <param name="view"></param>
 public virtual void HideDialog(ISSView view)
 {
     _parentViewModel?.HideDialog(view);
 }
Example #6
0
 ///
 /// <param name="view"></param>
 public virtual void ShowDialog(ISSView view)
 {
     _parentViewModel?.ShowDialog(view);
 }
Example #7
0
 ///
 /// <param name="view"></param>
 public override void HideDialog(ISSView view)
 {
 }