Exemplo n.º 1
0
        public void ShowDialogModal(IModalDialog dialog)
        {
            if (dialog == null)
            {
                return;
            }

            var placeHolderWindow = new PlaceHolderDialog();

            placeHolderWindow.DataContext = dialog;

            _windows.Add(placeHolderWindow);
            placeHolderWindow.ShowDialog();
        }
Exemplo n.º 2
0
        public void ShowDialog(IDialog dialog)
        {
            if (dialog == null)
            {
                return;
            }

            var placeHolderWindow = new PlaceHolderDialog();

            placeHolderWindow.DataContext = dialog;

            _windows.Add(placeHolderWindow);
            placeHolderWindow.Closed += PlaceHolderWindowOnClosed;
            placeHolderWindow.Show();
        }