public MainViewModel() { _output = new Output(); _dispatcher = Dispatcher.CurrentDispatcher; _solutions = new SolutionCollection(); _solutions.LoadFrom(AppDomain.CurrentDomain.BaseDirectory); _solutions.Sort(); BuildCommand = new Command(Build); RebuildCommand = new Command(Rebuild); CleanCommand = new Command(Clean); StopCommand = new Command(Stop); StopCommand.Disable(); ShowHideConsoleCommand = new Command(ShowHideConsole); CurrentConfiguration = Configuration.Debug; Configurations = new[] { Configuration.Debug, Configuration.Release }; _requestStopOperation = false; _avalableBuilders = new ObservableCollection <string>(); Task.Factory.StartNew(() => { Builders = BuilderLocator.GetAvailableBuilders(); CurrentBuilder = Builders.FirstOrDefault(); }); }
public ExtInfo GetInfo(string section, string key) { ValidateSection(section); return(Builders.FirstOrDefault(b => b.Key == key)); }