123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using InABox.Wpf;
- using System;
- using System.Windows;
- using System.Windows.Controls;
- namespace PRSDesktop.Forms.Export
- {
- /// <summary>
- /// Interaction logic for ExportForm.xaml
- /// </summary>
- public partial class ExportForm : ThemableWindow
- {
- private readonly ExportGrid Columns;
- public ExportForm(Type type)
- {
- InitializeComponent();
- Columns = new ExportGrid(type)
- {
- HorizontalAlignment = HorizontalAlignment.Stretch,
- VerticalAlignment = VerticalAlignment.Stretch,
- Margin = new Thickness(5)
- };
- grid.Children.Add(Columns);
- Columns.SetValue(Grid.RowProperty, 0);
- Columns.SetValue(Grid.ColumnProperty, 0);
- Columns.SetValue(Grid.ColumnSpanProperty, 3);
- }
- private void Window_Loaded(object sender, RoutedEventArgs e)
- {
- Columns.Refresh(true, true);
- }
- private void OKButton_Click(object sender, RoutedEventArgs e)
- {
- DialogResult = true;
- Close();
- }
- private void CancelButton_Click(object sender, RoutedEventArgs e)
- {
- DialogResult = false;
- Close();
- }
- }
- }
|