Ejemplo n.º 1
0
        public void Initialize(ApplicationListVM parent, int idx)
        {
            _parent    = parent;
            _parentIdx = idx;

            Status = ApplicationStatus.Idle;
        }
Ejemplo n.º 2
0
        public static ApplicationListVM Create(IEnumerable <ApplicationVM> applicationModels, int minimum = 1)
        {
            var listModel = new ApplicationListVM();
            var i         = 0;
            var models    = applicationModels.ToList();

            while (models.Count() < minimum)
            {
                models.Add(new ApplicationVM(empty: true));
            }

            models
            .Select(a => { a.Initialize(listModel, i++); return(true); })
            .ToList();

            listModel.ApplicationList = new ObservableCollection <ApplicationVM>(models);
            return(listModel);
        }
Ejemplo n.º 3
0
 internal void SetActiveApplication(ApplicationListVM AppListVm)
 {
     AppListVm.ActiveApplication = this;
     AppListVm.ApplicationList
     .ForEach(a => a.NotifyPropertyChanged("IsActiveApplication"));
 }