Esempio n. 1
0
        public void Execute(object parameter)
        {
            var windowManager = new CustomWindowManager();

#if OAuth
            windowManager.ShowWindow(IoC.Get<OAuthPinViewModel>()); 
#else
            windowManager.ShowWindow(IoC.Get<LoginViewModel>());
#endif
        }
Esempio n. 2
0
        public void Execute(object parameter)
        {
            var windowManager = new CustomWindowManager();
            var settings = new Dictionary<string, object>
                                 {
                                     { "WindowStyle", WindowStyle.ToolWindow},
                                     { "ShowInTaskbar", true},
                                     { "StartupLocation", WindowStartupLocation.CenterScreen}
                                 };

            var composeViewModel = IoC.Get<ComposeViewModel>();
            composeViewModel.Image = (parameter as ImageSource);
            windowManager.ShowWindow(composeViewModel, null, settings);
        }