public SharedTaskViewModel() { _entities = EntityManager.Create(); _dataManager = ViewsManager.Create(); _viewsManager = ViewsManager.Create(); this.LoadData(); this.LoadCommands(); }
public TaskViewModel(ViewTemplate template, ITaskRepository repository) { _viewsManager = ViewsManager.Create(); _tasksManager = TasksManager.Create(); this.Repository = repository; this.ViewTemplate = template; this.LoadData(); this.ConfigureCommands(); this.ConfigureView(); }
public ToolsViewModel() { this.TaskViewModels = new ObservableCollection <TaskViewModel>(); _dataManager = ViewsManager.Create(); _entities = EntityManager.Create(); _viewsManager = ViewsManager.Create(); this.LoadData(); this.ConfigureCommands(); this.ConfigureHandlers(); }
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(); }
private static void OnTimerElapsed(object sender, EventArgs e) { AppInfo.NotifyPendingSharedTasks(ViewsManager.Create( ).HasPendingSharedTask( )); AppInfo.NotifyChanges( ); }