Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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();
     });
 }