Пример #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            IUnityContainer container = new UnityContainer();

            container.RegisterType <IServiceSetting, ServiceSettingStatic>();

            var mainWindow = new WindowMain()
            {
                DataContext = new ViewModelContainerSearch(container.Resolve <IServiceSetting>())
                {
                }
            };


            //  var t = (new WindowLogin()).ShowDialog();
            //  if (t == true)
            mainWindow.ShowDialog();
            System.Environment.Exit(7);
        }