Пример #1
0
 public TaskViewModel(Models.TaskModel mtask, int processedImages)
 {
     this._task = mtask;
     this._numberProcessedImages = processedImages;
 }
Пример #2
0
        private void ApplyAlgorithm()
        {

            //totalTasks++;
            //string numbertask = totalTasks.ToString();

            Models.TaskModel mtask = new TaskModel(this._msesion.Total, this._malgorithms.Algorithms[AlgorithmsPosition], this._oimages.Count);
            foreach (OriginalCollectionViewModel item in this._oimages)
            {
                mtask.AddCollection(new ImageModel(item.Name, item.Path), item.ImageFromCamera);                              
            }

            // Clear original collection
            this._oimages.Clear();

            this._msesion.AddTask(mtask);
            this._tasks.Add(new TaskViewModel(mtask));            
            this.IsTaskEnabled = false;
        }
Пример #3
0
 public TaskViewModel(Models.TaskModel mtask)
 {
     this._task = mtask;
     this._numberProcessedImages = 0;
     this.StartTask();
 }