Exemplo n.º 1
0
        public ControlViewModel(ControlModel model, IPackageContext packageContext)
        {
            _model = model;
            _packageContext = packageContext;

            _settings = packageContext.ControlSettings;
            _buildProgressViewModel = new BuildProgressViewModel(_settings);

            packageContext.ControlSettingsChanged += OnControlSettingsChanged;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Uses as design-time ViewModel. 
 /// </summary>
 internal ControlViewModel()
 {
     _model = new ControlModel();
     _settings = new ControlSettings();
     _buildProgressViewModel = new BuildProgressViewModel(_settings);
 }