Ejemplo n.º 1
0
        public SharedTaskViewModel()
        {
            _entities     = EntityManager.Create();
            _dataManager  = ViewsManager.Create();
            _viewsManager = ViewsManager.Create();

            this.LoadData();
            this.LoadCommands();
        }
Ejemplo n.º 2
0
        public TaskViewModel(ViewTemplate template, ITaskRepository repository)
        {
            _viewsManager = ViewsManager.Create();
            _tasksManager = TasksManager.Create();

            this.Repository   = repository;
            this.ViewTemplate = template;

            this.LoadData();
            this.ConfigureCommands();
            this.ConfigureView();
        }
Ejemplo n.º 3
0
        public ToolsViewModel()
        {
            this.TaskViewModels = new ObservableCollection <TaskViewModel>();

            _dataManager  = ViewsManager.Create();
            _entities     = EntityManager.Create();
            _viewsManager = ViewsManager.Create();

            this.LoadData();
            this.ConfigureCommands();
            this.ConfigureHandlers();
        }
Ejemplo n.º 4
0
        private void ExecuteOpenViewTemplatesForm(object parameter)
        {
            ViewsManager dataManager = ViewsManager.Create();

            ViewTemplateView view = new ViewTemplateView();

            view.DataContext = new ViewTemplateViewModel(dataManager.Views);

            if (!base.ShowDialog(Translator.Translate("UI_CATEGORIES"), view))
            {
                return;
            }

            dataManager.SaveChanges();
        }
Ejemplo n.º 5
0
 private static void OnTimerElapsed(object sender, EventArgs e)
 {
     AppInfo.NotifyPendingSharedTasks(ViewsManager.Create( ).HasPendingSharedTask( ));
     AppInfo.NotifyChanges( );
 }