private void AssignmentGridSelectColumnsButton_Click(object sender, RoutedEventArgs e) { var dialog = new ColumnChooserDialog(AssignmentFields.All, _assignmentFields, AssignmentFields.Default) { Owner = this }; if (dialog.ShowDialog() == true) { _assignmentFields.Clear(); _assignmentFields.AddRange(dialog.SelectedColumns.OfType <AssignmentField>()); UpdateAssignmentGridColumns(); } }
private void ResourceGridSelectColumnsButton_Click(object sender, RoutedEventArgs e) { var dialog = new ColumnChooserDialog(ResourceFields.All, _resourceFields, ResourceFields.Default) { Owner = this }; if (dialog.ShowDialog() == true) { _resourceFields.Clear(); _resourceFields.AddRange(dialog.SelectedColumns.OfType <ResourceField>()); UpdateResourceGridColumns(); } }