public AppBuilderViewModel(Service service)
 {
     Service = service;
     availableCodeProjectsWithContentProjects = new Dictionary<ProjectEntry, string>();
     MessagesListViewModel = new AppBuildMessagesListViewModel();
     AppListViewModel = new BuiltAppsListViewModel(Settings.Current);
     AppListViewModel.RebuildRequest += OnAppRebuildRequest;
     BuildCommand = new RelayCommand(OnBuildExecuted, () => IsBuildActionExecutable);
     HelpCommand = new RelayCommand(OpenAppBuilderFeaturesPage);
     GotoUserProfilePageCommand = new RelayCommand(OpenUserProfilePage);
     GotoBuiltAppsDirectoryCommand = new RelayCommand(OpenLocalBuiltAppsDirectory);
     service.AvailableProjectsChanged += OnAvailableProjectsChanged;
     OnAvailableProjectsChanged();
     service.ProjectChanged += OnContentProjectChanged;
     OnContentProjectChanged();
     service.DataReceived += OnServiceMessageReceived;
     Service.Send(new SupportedPlatformsRequest());
     SelectedPlatform = PlatformName.Windows;
     IsRebuildForced = false;
 }
Example #2
0
 public AppBuilderViewModel(Service service)
 {
     Service = service;
     availableCodeProjectsWithContentProjects = new Dictionary <ProjectEntry, string>();
     MessagesListViewModel            = new AppBuildMessagesListViewModel();
     AppListViewModel                 = new BuiltAppsListViewModel(Settings.Current);
     AppListViewModel.RebuildRequest += OnAppRebuildRequest;
     BuildCommand = new RelayCommand(OnBuildExecuted, () => IsBuildActionExecutable);
     HelpCommand  = new RelayCommand(OpenAppBuilderFeaturesPage);
     GotoUserProfilePageCommand        = new RelayCommand(OpenUserProfilePage);
     GotoBuiltAppsDirectoryCommand     = new RelayCommand(OpenLocalBuiltAppsDirectory);
     service.AvailableProjectsChanged += RefreshListOfAvailableCodeProjects;
     service.SolutionFilePathOfContentProjectChanged += OnSolutionFilePathOfContentProjectChanged;
     RefreshListOfAvailableCodeProjects();
     service.ProjectChanged += AutoSelectNewCodeProject;
     AutoSelectNewCodeProject();
     service.DataReceived += OnServiceMessageReceived;
     Service.Send(new SupportedPlatformsRequest());
     SelectedPlatform = PlatformName.Windows;
     IsRebuildForced  = false;
 }