示例#1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            var locationService = new LocationService();
            var address = new Domain.Address();
            var person = new Domain.PersonEntry(locationService, address);
            var vm = new UI.PersonEntry.PersonEntryViewModel(person, new SchedulerProvider());
            vm.Load();

            var window = new UI.PersonEntry.PersonEntryView(vm);
            vm.CloseCommand = new DelegateCommand(window.Close);

            this.MainWindow = window;
            window.Show();
        }
示例#2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            var locationService = new LocationService();
            var address         = new Domain.Address();
            var person          = new Domain.PersonEntry(locationService, address);
            var vm = new UI.PersonEntry.PersonEntryViewModel(person, new SchedulerProvider());

            vm.Load();

            var window = new UI.PersonEntry.PersonEntryView(vm);

            vm.CloseCommand = new DelegateCommand(window.Close);

            this.MainWindow = window;
            window.Show();
        }