protected override DependencyObject CreateShell()
        {
            LateNightShellModel model = Container.Resolve <LateNightShellModel>();
            LateNightShell      shell = new LateNightShell(model);

            Container.RegisterInstance <LateNightShell>(shell);
            shell.DataContext = model;
            shell.Show();
            return(shell);
        }
Beispiel #2
0
        /// <summary>
        /// Creates a new instance of <c>LateNightShell</c>.
        /// </summary>
        internal LateNightShell(LateNightShellModel model)
        {
            InitializeComponent();

            Model = model;
        }
        /// <summary>
        /// Creates a new instance of <c>LateNightShell</c>.
        /// </summary>
        internal LateNightShell(LateNightShellModel model)
        {
            InitializeComponent();

            Model = model;
        }