Beispiel #1
0
        void columnsButton_Click(object sender, RoutedEventArgs e)
        {
            ColumnPicker columnPicker = new ColumnPicker(tableMappingViewModel);

            columnPicker.ShowDialog();
            tableMappingViewModel.UpdateColumnMappings();
        }
Beispiel #2
0
 void ColumnPicker_Closed(object sender, EventArgs e)
 {
     foreach (ColumnPickerItem item in items)
     {
         ColumnMapping columnMapping = item.ColumnMapping;
         if (item.IsSelected && columnMapping.ColumnUse == ColumnUse.Exclude)
         {
             columnMapping.ColumnUse = viewModel.TableMapping.AllowedColumnUses()[0];
         }
         else if (!item.IsSelected)
         {
             columnMapping.ColumnUse = ColumnUse.Exclude;
         }
     }
     viewModel.UpdateColumnMappings();
 }