Ejemplo n.º 1
0
        void ShowAdvancedOptions()
        {
            var vm = new AdvancedServiceViewModel(serviceGenerator.Options.Clone());

            vm.AssembliesToReference.AddRange(assemblyReferences);
            var view = new AdvancedServiceDialog();

            view.DataContext = vm;
            if (view.ShowDialog() ?? false)
            {
                serviceGenerator.Options = vm.Options;
                serviceGenerator.UpdateAssemblyReferences(assemblyReferences);
            }
        }
 void ShowAdvancedOptions()
 {
     var vm = new AdvancedServiceViewModel(serviceGenerator.Options.Clone());
     vm.AssembliesToReference.AddRange(assemblyReferences);
     var view = new AdvancedServiceDialog();
     view.DataContext = vm;
     if (view.ShowDialog() ?? false) {
         serviceGenerator.Options = vm.Options;
         serviceGenerator.UpdateAssemblyReferences(assemblyReferences);
     }
 }
		void ExecuteAdvancedDialogCommand()
		{
			var vm = new AdvancedServiceViewModel();
			var view = new AdvancedServiceDialog();
			view.DataContext = vm;
			view.ShowDialog();
		}