/// <summary> /// Добавить таблицу /// </summary> public void AddGrid() { ModalView window = new ModalView(); GridViewModel panelViewModel = new GridViewModel(_rootPanel); window.DataContext = panelViewModel; if (window.ShowDialog() == true) { _rootPanel.Children.Add(panelViewModel); } }
/// <summary> /// Установить всем /// </summary> public void SetAll() { MassiveSetViewModel model = new MassiveSetViewModel(Properties); ModalView window = new ModalView { DataContext = model }; if (window.ShowDialog() == true) { } }
/// <summary> /// Добавить свойство /// </summary> public void AddProperty() { ModalView window = new ModalView(); ModalViewModel model = new ModalViewModel(_rootPanel); window.DataContext = model; if (window.ShowDialog() == true) { _rootPanel.Children.Add(model); NotifyOfPropertyChange(nameof(CanWriteResourses)); } }
public void EditProperty() { if (CurrentProperty == null) { return; } ModalView window = new ModalView(); window.DataContext = CurrentProperty; if (window.ShowDialog() == true) { } }
/// <summary> /// Получить скрипт для редактирования /// </summary> public void GetPageScript(string param) { bool isEdit = param == "e"; ModalView window = new ModalView(); RolesViewModel model = new RolesViewModel { Roles = _dal.GetGlobalRoles() }; window.DataContext = model; if (window.ShowDialog() == true) { ScriptConstructorHelper helper = new ScriptConstructorHelper { Visability = 3 }; helper.Constructor(_constructorViewModel.Properties, isEdit, CurrentMenuPageView.Id, model.SelectRoles.Select(i => i.Id)); Clipboard.SetText(helper.ToString()); _aggregator.PublishOnUIThread("[Инфо]:Скопированно в буфер"); } }
public void EditProperty() { if (CurrentProperty == null) return; ModalView window = new ModalView(); window.DataContext = CurrentProperty; if (window.ShowDialog() == true) { } }
/// <summary> /// Добавить панель /// </summary> public void AddPanel() { ModalView window = new ModalView(); PanelViewModel panelViewModel = new PanelViewModel(_rootPanel); window.DataContext = panelViewModel; if (window.ShowDialog() == true) { _rootPanel.Children.Add(panelViewModel); } }