public LoaderSettingsViewModel(ObservableCollection<IDataLoader> DataLoaders)
 {
     this.DataLoaders = DataLoaders;
     DeleteCommand = new Command((p) => Delete((IDataLoader)p));
     ApplyCommand = new Command((p) => Apply(p));
     AddCommand = new Command(
         (p) => AddLoaderEditor(), 
         (p)=> _SelectedLoaderType != null
     );
 }
 public PageQueueViewModel()
 {
     CommandAdd = new Command((p) => Add((ConfiguredPair<IPageGeneratorSettings>)p), p => _Selected != null) { IsEnabled = false };
 }
 public ServerSettingsViewModel()
 {
     DeleteCommand = new Command(_ => Delete(), _ => _SelectedSettings != null);
     NewCommand = new Command(_ => New());
     CommandTest = new CancellableCommand((p, t) => Test(t), p => !string.IsNullOrWhiteSpace(_Url) && _GeneratorModel != null && _GeneratorModel.IsConfigured);
     CommandTestCancel = new Command(_ => CommandTest.Cancell());
     CommandTest.IsEnabled = false;
 }