Ejemplo n.º 1
0
        private void ExecuteModifyViewTemplate(object parameter)
        {
            ViewTemplateEntryView view = new ViewTemplateEntryView();

            view.DataContext = this.SelectedTaskViewModel.ViewTemplate;

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

            _dataManager.SaveChanges();
        }
Ejemplo n.º 2
0
        private void ExecuteAddViewTemplate(object parameter)
        {
            ViewTemplate viewTemplate = new ViewTemplate();

            viewTemplate.Id = Guid.NewGuid();

            ViewTemplateEntryView view = new ViewTemplateEntryView();

            view.DataContext = viewTemplate;

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

            _dataManager.Views.Add(viewTemplate);
            _dataManager.SaveChanges();
        }
Ejemplo n.º 3
0
        private void CreateViewTemplate(Guid id, string description)
        {
            var viewTemplate = new ViewTemplate()
            {
                Id = id, Description = description
            };

            ViewTemplateEntryView view = new ViewTemplateEntryView();

            view.DataContext = viewTemplate;

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

            _dataManager.Views.Add(viewTemplate);
            _dataManager.SaveChanges();
        }