Example #1
0
        private void ShowBsaFilter(object sender, RoutedEventArgs e)
        {
            var w = new WindowFilter {
                ModelConfigurationSelection = ModelConfiguration.Main.ModelPassBsa.ModelSelection
            };

            w.DataContext = w.ModelConfigurationSelection;
            w.ShowDialog();
        }
Example #2
0
        private void ShowFilters(object sender, RoutedEventArgs e)
        {
            Button button = sender as Button;

            if (button != null)
            {
                ModelConfigurationPass pass = button.DataContext as ModelConfigurationPass;
                var selection = pass.ModelSelection;
                //
                var w = new WindowFilter {
                    ModelConfigurationSelection = selection
                };
                w.DataContext = w.ModelConfigurationSelection;
                w.ShowDialog();
            }
        }