Ejemplo n.º 1
0
        private void AboutDialogCommand()
        {
            IAboutDialogView     view        = container.GetExportedValue <IAboutDialogView>();
            AboutDialogViewModel aboutDialog = new AboutDialogViewModel(view);

            aboutDialog.ShowDialog(this.shellViewModel.View);
        }
Ejemplo n.º 2
0
        public void GeneralTest()
        {
            var view      = new AboutDialogView();
            var viewModel = new AboutDialogViewModel(view);

            var owner = new object();

            view.ShowDialogAction = v =>
            {
                Assert.AreEqual(owner, v.Owner);
                Assert.IsTrue(v.IsVisible);
            };

            Assert.IsFalse(view.IsVisible);
            bool?dialogResult = viewModel.ShowDialog(owner);

            Assert.IsFalse(dialogResult.HasValue);
            Assert.IsFalse(view.IsVisible);
        }
Ejemplo n.º 3
0
 private void AboutDialogCommandExcute()
 {
     IAboutDialogView view = container.GetExportedValue<IAboutDialogView>();
     AboutDialogViewModel aboutDialog = new AboutDialogViewModel(view);
     aboutDialog.ShowDialog(this.floatingViewModel.View);
 }