Esempio n. 1
0
        public bool ShowWindow(IDialogContent model)
        {
            var dialog = new DialogWindow();
            dialog.SetContent(model);

            dialog.Show();
            return true;
        }
Esempio n. 2
0
        public bool ShowModalWindow(IDialogContent model, Window parentWindow)
        {
            try
            {
                var dialog = new DialogWindow
                {
                    Owner = parentWindow,
                };
                dialog.SetContent(model);

                bool? result = dialog.ShowDialog();
                if (result == null)
                {
                }

                return (bool)result;
            }
            catch (Exception)
            {
                throw;
            }
        }