Пример #1
0
        public LoadedAssembliesVm(ICollection <string> assemblies)
        {
            _assemblies   = assemblies;
            _assembliesVm = new ObservableCollection <AssemblyVm>(assemblies.Select(x => new AssemblyVm(x, Remove)).ToList());
            Assemblies    = new ReadOnlyObservableCollection <AssemblyVm>(_assembliesVm);

            AddCommand  = new CommandVm(Texts.Command_AddAssemblies, x => Add());
            DoneCommand = new CommandVm(Texts.Command_Done, x => Close());
        }
Пример #2
0
 public QueryOutputVm()
 {
     ClearCommand = new CommandVm(Texts.Command_ClearQueryOutput, x => Clear());
 }