Esempio n. 1
0
        public bool OpenPublishDialog(object viewModel)
        {
            var dialog = new PublishPackageWindow {
                Owner       = Window.Value,
                DataContext = viewModel
            };
            var result = dialog.ShowDialog();

            return(result ?? false);
        }
Esempio n. 2
0
        public bool OpenPublishDialog(object viewModel)
        {
            var dialog = new PublishPackageWindow
            {
                Owner       = Window.Value,
                DataContext = viewModel
            };

            if (viewModel is IDisposable)
            {
                dialog.Closed += OnDialogClosed;
            }

            var result = dialog.ShowDialog();

            return(result ?? false);
        }
        public bool OpenPublishDialog(object viewModel)
        {
            var dialog = new PublishPackageWindow
                         {
                             Owner = Window.Value,
                             DataContext = viewModel
                         };

            var disposable = viewModel as IDisposable;
            if (disposable != null)
            {
                dialog.Closed += OnDialogClosed;
            }

            bool? result = dialog.ShowDialog();
            return result ?? false;
        }
Esempio n. 4
0
 public bool OpenPublishDialog(object viewModel)
 {
     var dialog = new PublishPackageWindow {
         Owner = Window.Value,
         DataContext = viewModel
     };
     var result = dialog.ShowDialog();
     return result ?? false;
 }