using InABox.Wpf; using System; using System.Windows; using System.Windows.Controls; namespace PRSDesktop.Forms.Export { /// /// Interaction logic for ExportForm.xaml /// 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(); } } }