12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using InABox.Core;
- using InABox.Reports;
- using InABox.Wpf;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Shapes;
- namespace PRSDesktop.Configuration
- {
- /// <summary>
- /// Interaction logic for CustomModuleManager.xaml
- /// </summary>
- public partial class CustomModuleManager : ThemableWindow
- {
- private CustomModuleGrid grid;
- public CustomModuleManager()
- {
- InitializeComponent();
- grid = new CustomModuleGrid
- {
- HorizontalAlignment = HorizontalAlignment.Stretch,
- VerticalAlignment = VerticalAlignment.Stretch,
- Margin = new Thickness(5)
- };
- AddChild(grid);
- }
- public string Section { get; set; }
- public DataModel? DataModel { get; set; } = null;
- private void Window_Loaded(object sender, RoutedEventArgs e)
- {
- Title = "Custom Modules - " + Section;
- grid.DataModel = DataModel;
- grid.Section = Section;
- grid.Refresh(true, true);
- }
- }
- }
|