Как связать DataGrid CheckBox с нажатием кнопки?

Есть TabControl в котором находится таблица DataGrid. После нажатия кнопки CheckSettings таблица заполняется данными, в последнем столбце отображается CheckBox где будет отмечаться галочками значения которые совпали. Если галочки отмечены напротив 1 и 3 строки таблицы, то после нажатия конпки RunningFixes должны выполняться действия только где отмечены галочки. Не получается разобраться как их связать. Как можно связать CheckBox в которых отмечены галочки с нажатием кнопки RunningFixes ?

WPF

<Grid>
<TabControl HorizontalAlignment="Left" Height="425" Margin="10,55,0,0" VerticalAlignment="Top" Width="780" TabStripPlacement="Left">
            <TabItem Header="Tab1">
                <Grid Background="#FFE5E5E5">
                    <DataGrid x:Name="MyGrid" AutoGenerateColumns="False">
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="Наименование" Width="*" Binding="{Binding InformatioTitle}"/>
                            <DataGridTextColumn Header="Значение первое" Width="*" Binding="{Binding InformatioVerion}"/>
                            <DataGridTextColumn Header="Значение второе" Width="*" Binding="{Binding InformationVersionStandart}"/>
                            <DataGridTemplateColumn Header="Результат" Width="*">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <CheckBox IsChecked= "{Binding CheckBoxBooleanValue}"/>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                        </DataGrid.Columns>
                    </DataGrid>
                </Grid>
            </TabItem>
        </TabControl>
            <Button Name="CheckSettings" Content="Проверка параметров" HorizontalAlignment="Left" Margin="65,544,0,0" VerticalAlignment="Top" Width="337" Height="22" Click="CheckSettings_Click" />
            <Button Name="RunningFixes" Content="Запуск исправлений" HorizontalAlignment="Left" Margin="65,513,0,0" VerticalAlignment="Top" Width="337" Height="22" Click="RunningFixes_Click"/>

C#

private void CheckSettings_Click(object sender, RoutedEventArgs e){
bool SettingsCheck = false;
//в качестве примера
if(InformatioVerion == InformationVersionStandart){
    SettingsCheck = true;
}
else{
    SettingsCheck = false;
}

List<Information> program = new List<Information>();
program.Add(new Information() { InformatioTitle = "Пераметр1", InformatioVerion = 1, InformationVersionStandart = 1, CheckBoxBooleanValue = SettingsCheck });
program.Add(new Information() { InformatioTitle = "Пераметр2", InformatioVerion = 4, InformationVersionStandart = 1, CheckBoxBooleanValue = SettingsCheck });
program.Add(new Information() { InformatioTitle = "Пераметр3", InformatioVerion = 1, InformationVersionStandart = 1, CheckBoxBooleanValue = SettingsCheck });
program.Add(new Information() { InformatioTitle = "Пераметр4", InformatioVerion = 3, InformationVersionStandart = 1, CheckBoxBooleanValue = SettingsCheck });
MyGrid.ItemsSource = program;

public class Information {
public string InformatioTitle { get; set; }
public string InformatioVerion { get; set; }
public string InformationVersionStandart { get; set; }
public bool CheckBoxBooleanValue { get; set; } }

Ответы (0 шт):