<commit_before>﻿<UserControl x:Class="Ouranos.RedArmory.Views.Contents.Settings.TaskScheduler"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:models="clr-namespace:Ouranos.RedArmory.Models"
             Name="_Root"
             d:DesignHeight="500"
             d:DesignWidth="700"
             x:ClassModifier="internal"
             Background="{StaticResource BackgroundBrush}"
             DataContext="{Binding Source={StaticResource Locator},
                                   Path=Setting}"
             mc:Ignorable="d">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <DockPanel Width="Auto"
                   Height="Auto"
                   Margin="0,0,0,0"
                   HorizontalAlignment="Stretch"
                   VerticalAlignment="Stretch"
                   IsEnabled="{Binding HasStacks}"
                   LastChildFill="True">
            <ScrollViewer VerticalScrollBarVisibility="Auto" Visibility="{Binding Settings, Converter={StaticResource CollectionCountToVisibilityConverter}}">
                <ListBox Name="_OperatingSystemListBox"
                         Width="250"
                         Background="{StaticResource SecondaryAccentBrush}"
                         ItemTemplate="{StaticResource BitnamiRedmineStackListBoxDataTemplate}"
                         ItemsSource="{Binding Settings}"
                         SelectedIndex="0"
                         SelectedItem="{Binding SelectedSetting}" />
            </ScrollViewer>
            <Grid Width="Auto"
                  Height="Auto"
                  HorizontalAlignment="Stretch"
                  VerticalAlignment="Stretch">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <!--  52 は 36 + ((40 - 24) / 2) * 2  -->
                <Grid Grid.Row="0"
                      Height="52"
                      Background="{StaticResource SubHeaderBackgroundBrush}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <StackPanel Orientation="Horizontal">
                        <Viewbox Width="24"
                                 Height="24"
                                 Margin="16 0 6 0"
                                 VerticalAlignment="Center">
                            <Path Width="40"
                                  Height="40"
                                  Data="M17.129,16.75 C20.588867,16.75 20.589001,16.75 20.589001,16.75 L20.589001,28.337 17.129066,28.337 z M17.129,9.7539997 L20.589001,9.7539997 20.589001,13.242 17.129032,13.242 z M18.921801,3.8392997 C10.683644,3.8392999 4.0053,10.517645 4.0053,18.7558 4.0053,26.993956 10.683644,33.672298 18.921801,33.672298 27.159956,33.672298 33.838299,26.993956 33.838299,18.7558 33.838299,10.517645 27.159956,3.8392999 18.921801,3.8392997 z M19.003,0 C29.498068,0 38.006001,8.5079327 38.006001,19.003 38.006001,29.498068 29.498068,38.006001 19.003,38.006001 8.5079327,38.006001 0,29.498068 0,19.003 0,8.5079327 8.5079327,0 19.003,0 z"
                                  Fill="{StaticResource IdealForegroundColorBrush}"
                                  Stretch="Uniform" />
                        </Viewbox>
                        <Label VerticalAlignment="Center"
                               Content="{Binding SelectedSetting.Stack.InstallLocation}"
                               FontSize="16"
                               FontWeight="Bold"
                               Foreground="{StaticResource IdealForegroundColorBrush}" />
                    </StackPanel>
                    <Button Grid.Column="1"
                            Width="{StaticResource IconPathSize}"
                            Height="{StaticResource IconPathSize}"
                            Margin="6 0 6 0"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Command="{Binding SelectedSetting.SelectedTaskScheduler.RefreshCommand}"
                            Foreground="{StaticResource IdealForegroundColorBrush}"
                            Style="{DynamicResource MaterialDesignFloatingActionDarkButton}">
                        <Viewbox Width="{StaticResource IconSize}" Height="{StaticResource IconSize}">
                            <Path Width="{StaticResource IconPathSize}"
                                  Height="{StaticResource IconPathSize}"
                                  Data="M72.249903,16.14601 L87.915983,32.146067 76.249716,32.979412 C74.524256,61.351105 48.495424,70.90712 27.249985,59.480049 L32.499655,53.313236 C53.585453,60.915741 65.918699,53.806782 68.500223,33.062414 L56.416159,32.646412 z M43.615536,0.501091 C49.405912,0.54665947 55.416328,2.0205917 61.082994,5.1455288 L55.666002,10.978878 C39.166331,1.3953981 20.332998,12.728797 20.166214,32.311949 L31.915814,32.561954 15.915748,48.312008 0.5,32.561619 12.665534,32.645617 C10.853632,13.082975 26.244406,0.36438942 43.615536,0.501091 z"
                                  Fill="{StaticResource IdealForegroundColorBrush}"
                                  Stretch="Uniform" />
                        </Viewbox>
                    </Button>
                </Grid>
                <ScrollViewer Grid.Row="2"
                              Grid.Column="0"
                              Width="Auto"
                              Height="Auto"
                              HorizontalAlignment="Stretch"
                              VerticalAlignment="Stretch"
                              HorizontalContentAlignment="Stretch"
                              VerticalContentAlignment="Stretch">
                    <DataGrid AutoGenerateColumns="False" ItemsSource="{Binding SelectedSetting.SelectedTaskScheduler.Items}">
                        <DataGrid.Columns>
                            <DataGridTemplateColumn Header="{Binding Source={x:Static models:ResourceService.Instance}, Path=Resources.Word_Name, Mode=OneWay}" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate DataType="models:TaskSchedulerItem">
                                        <Label HorizontalAlignment="Left"
                                               VerticalAlignment="Center"
                                               Content="{Binding Name}" />
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                            <DataGridTemplateColumn Header="{Binding Source={x:Static models:ResourceService.Instance}, Path=Resources.Word_Status, Mode=OneWay}" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate DataType="models:TaskSchedulerItem">
                                        <Label HorizontalAlignment="Left"
                                               VerticalAlignment="Center"
                                               Content="{Binding TaskState,
                                                                 Converter={StaticResource TaskStateToStringConverter}}" />
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                            <DataGridTemplateColumn Header="{Binding Source={x:Static models:ResourceService.Instance}, Path=Resources.Word_NextRunTime, Mode=OneWay}" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate DataType="models:TaskSchedulerItem">
                                        <Label HorizontalAlignment="Left"
                                               VerticalAlignment="Center"
                                               Content="{Binding NextRunTime}" />
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                            <DataGridTemplateColumn Header="{Binding Source={x:Static models:ResourceService.Instance}, Path=Resources.Word_LastRunTime, Mode=OneWay}" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate DataType="models:TaskSchedulerItem">
                                        <Label HorizontalAlignment="Left"
                                               VerticalAlignment="Center"
                                               Content="{Binding LastRunTime}" />
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                            <DataGridTemplateColumn Header="{Binding Source={x:Static models:ResourceService.Instance}, Path=Resources.Word_Active, Mode=OneWay}" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate DataType="models:TaskSchedulerItem">
                                        <CheckBox HorizontalAlignment="Center"
                                                  VerticalAlignment="Center"
                                                  IsChecked="{Binding Enabled,
                                                                      Mode=TwoWay,
                                                                      UpdateSourceTrigger=PropertyChanged}" />
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                            <DataGridTemplateColumn Header="{Binding Source={x:Static models:ResourceService.Instance}, Path=Resources.Word_Actions, Mode=OneWay}" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate DataType="models:EnumerationItem">
                                        <StackPanel Orientation="Horizontal">
                                            <Button Width="{StaticResource LargeIconSize}"
                                                    Height="{StaticResource LargeIconSize}"
                                                    Margin="2"
                                                    VerticalAlignment="Center"
                                                    Command="{Binding DataContext.SelectedSetting.SelectedTaskScheduler.RunCommand,
                                                                      ElementName=_Root}"
                                                    CommandParameter="{Binding}"
                                                    Style="{DynamicResource MaterialDesignFloatingActionDarkButton}"
                                                    ToolTip="{Binding Source={x:Static models:ResourceService.Instance},
                                                                      Path=Resources.Tooltip_Run,
                                                                      Mode=OneWay}">
                                                <Viewbox Width="{StaticResource IconSize}" Height="{StaticResource IconSize}">
                                                    <Path Width="{StaticResource IconPathSize}"
                                                          Height="{StaticResource IconPathSize}"
                                                          Data="M32.416,22.25 L32.416,57.75 55.416008,40.162846 z M40,0 C62.091389,0 80,17.908609 80,40 80,62.091389 62.091389,80 40,80 17.908609,80 0,62.091389 0,40 0,17.908609 17.908609,0 40,0 z"
                                                          Fill="{StaticResource IdealForegroundColorBrush}"
                                                          Stretch="Fill" />
                                                </Viewbox>
                                            </Button>
                                            <Button Width="{StaticResource LargeIconSize}"
                                                    Height="{StaticResource LargeIconSize}"
                                                    Margin="2"
                                                    VerticalAlignment="Center"
                                                    Command="{Binding DataContext.SelectedSetting.SelectedTaskScheduler.StopCommand,
                                                                      ElementName=_Root}"
                                                    CommandParameter="{Binding}"
                                                    Style="{DynamicResource MaterialDesignFloatingActionDarkButton}"
                                                    ToolTip="{Binding Source={x:Static models:ResourceService.Instance},
                                                                      Path=Resources.Tooltip_End,
                                                                      Mode=OneWay}">
                                                <Viewbox Width="{StaticResource IconSize}" Height="{StaticResource IconSize}">
                                                    <Path Width="{StaticResource IconPathSize}"
                                                          Height="{StaticResource IconPathSize}"
                                                          Data="M25.4375,19.640001 L20,25.577566 34.18763,39.765644 20,53.952717 25.750256,59.702751 39.938385,45.515175 54.438412,60.014999 59.812973,54.640434 45.562733,40.390007 60.124985,25.827568 59.749992,25.452572 54.249996,19.952505 39.999996,34.202679 z M40.0625,0 C62.188408,0 80.125,17.936592 80.125,40.0625 80.125,62.188408 62.188408,80.125 40.0625,80.125 17.936592,80.125 0,62.188408 0,40.0625 0,17.936592 17.936592,0 40.0625,0 z"
                                                          Fill="{StaticResource IdealForegroundColorBrush}"
                                                          Stretch="Fill" />
                                                </Viewbox>
                                            </Button>
                                            <Button Width="{StaticResource LargeIconSize}"
                                                    Height="{StaticResource LargeIconSize}"
                                                    Margin="2"
                                                    VerticalAlignment="Center"
                                                    Command="{Binding DataContext.SelectedSetting.SelectedTaskScheduler.DeleteCommand,
                                                                      ElementName=_Root}"
                                                    CommandParameter="{Binding}"
                                                    Style="{DynamicResource MaterialDesignFloatingActionDarkButton}"
                                                    ToolTip="{Binding Source={x:Static models:ResourceService.Instance},
                                                                      Path=Resources.Tooltip_Delete,
                                                                      Mode=OneWay}">
                                                <Viewbox Width="{StaticResource IconSize}" Height="{StaticResource IconSize}">
                                                    <Path Width="{StaticResource IconPathSize}"
                                                          Height="{StaticResource IconPathSize}"
                                                          Data="M9.4099998,17.003 L9.4099998,21.128 28.595999,21.128 28.595999,17.003 z M19.003,0 C29.498066,0 38.006001,8.5079327 38.006001,19.003 38.006001,29.498066 29.498066,38.006001 19.003,38.006001 8.5079327,38.006001 0,29.498066 0,19.003 0,8.5079327 8.5079327,0 19.003,0 z"
                                                          Fill="{StaticResource IdealForegroundColorBrush}"
                                                          Stretch="Fill" />
                                                </Viewbox>
                                            </Button>
                                        </StackPanel>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                        </DataGrid.Columns>
                    </DataGrid>
                </ScrollViewer>
                <Border Grid.Row="3"
                        Grid.Column="0"
                        Width="Auto"
                        Height="Auto"
                        HorizontalAlignment="Stretch"
                        VerticalAlignment="Stretch"
                        BorderBrush="{DynamicResource PrimaryHueDarkBrush}"
                        BorderThickness="1" />
                <Grid Grid.Row="4"
                      Grid.Column="0"
                      Background="{StaticResource AppBarBackgroundBrush}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.Row="0"
                                Grid.Column="2"
                                HorizontalAlignment="Right"
                                Orientation="Horizontal">
                        <Button Height="{StaticResource FooterBarHeight}"
                                VerticalAlignment="Center"
                                Command="{Binding SelectedSetting.SelectedEnumeration.UpdateCommand}"
                                Style="{DynamicResource MaterialDesignRaisedButton}"
                                ToolTip="{Binding Source={x:Static models:ResourceService.Instance},
                                                  Path=Resources.Tooltip_Save,
                                                  Mode=OneWay}">
                            <StackPanel Orientation="Horizontal">
                                <Viewbox Width="{StaticResource IconSize}" Height="{StaticResource IconSize}">
                                    <Path Width="{StaticResource IconPathSize}"
                                          Height="{StaticResource IconPathSize}"
                                          Data="M62.791832,19.296999 L32.541748,49.547085 18.041666,35.047001 12.666995,40.921989 C32.584221,60.839161 32.584057,60.838997 32.584057,60.838997 L68.459007,24.964148 z M40.335999,0 C62.612957,0 80.671997,18.059042 80.671997,40.335999 80.671997,62.612957 62.612957,80.671997 40.335999,80.671997 18.059042,80.671997 0,62.612957 0,40.335999 0,18.059042 18.059042,0 40.335999,0 z"
                                          Fill="{StaticResource IdealForegroundColorBrush}"
                                          Stretch="Fill" />
                                </Viewbox>
                                <Label Content="{Binding Source={x:Static models:ResourceService.Instance},
                                                         Path=Resources.Word_Save,
                                                         Mode=OneWay}"
                                       FontSize="12"
                                       Foreground="{StaticResource IdealForegroundColorBrush}" />
                            </StackPanel>
                        </Button>
                    </StackPanel>
                </Grid>
            </Grid>
        </DockPanel>
        <UserControl Background="#CC000000" Visibility="{Binding IsEmptyStacks, Converter={StaticResource CollapsedIfFalse}}">
            <Label HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Content="{Binding Source={x:Static models:ResourceService.Instance},
                                     Path=Resources.Msg_BitnamiRedmineStackIsNotPresent,
                                     Mode=OneWay}"
                   Foreground="{StaticResource IdealForegroundColorBrush}" />
        </UserControl>
    </Grid>
</UserControl><commit_msg>Remove unnecessary button<commit_after>﻿<UserControl x:Class="Ouranos.RedArmory.Views.Contents.Settings.TaskScheduler"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:models="clr-namespace:Ouranos.RedArmory.Models"
             Name="_Root"
             d:DesignHeight="500"
             d:DesignWidth="700"
             x:ClassModifier="internal"
             Background="{StaticResource BackgroundBrush}"
             DataContext="{Binding Source={StaticResource Locator},
                                   Path=Setting}"
             mc:Ignorable="d">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <DockPanel Width="Auto"
                   Height="Auto"
                   Margin="0,0,0,0"
                   HorizontalAlignment="Stretch"
                   VerticalAlignment="Stretch"
                   IsEnabled="{Binding HasStacks}"
                   LastChildFill="True">
            <ScrollViewer VerticalScrollBarVisibility="Auto" Visibility="{Binding Settings, Converter={StaticResource CollectionCountToVisibilityConverter}}">
                <ListBox Name="_OperatingSystemListBox"
                         Width="250"
                         Background="{StaticResource SecondaryAccentBrush}"
                         ItemTemplate="{StaticResource BitnamiRedmineStackListBoxDataTemplate}"
                         ItemsSource="{Binding Settings}"
                         SelectedIndex="0"
                         SelectedItem="{Binding SelectedSetting}" />
            </ScrollViewer>
            <Grid Width="Auto"
                  Height="Auto"
                  HorizontalAlignment="Stretch"
                  VerticalAlignment="Stretch">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <!--  52 は 36 + ((40 - 24) / 2) * 2  -->
                <Grid Grid.Row="0"
                      Height="52"
                      Background="{StaticResource SubHeaderBackgroundBrush}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <StackPanel Orientation="Horizontal">
                        <Viewbox Width="24"
                                 Height="24"
                                 Margin="16 0 6 0"
                                 VerticalAlignment="Center">
                            <Path Width="40"
                                  Height="40"
                                  Data="M17.129,16.75 C20.588867,16.75 20.589001,16.75 20.589001,16.75 L20.589001,28.337 17.129066,28.337 z M17.129,9.7539997 L20.589001,9.7539997 20.589001,13.242 17.129032,13.242 z M18.921801,3.8392997 C10.683644,3.8392999 4.0053,10.517645 4.0053,18.7558 4.0053,26.993956 10.683644,33.672298 18.921801,33.672298 27.159956,33.672298 33.838299,26.993956 33.838299,18.7558 33.838299,10.517645 27.159956,3.8392999 18.921801,3.8392997 z M19.003,0 C29.498068,0 38.006001,8.5079327 38.006001,19.003 38.006001,29.498068 29.498068,38.006001 19.003,38.006001 8.5079327,38.006001 0,29.498068 0,19.003 0,8.5079327 8.5079327,0 19.003,0 z"
                                  Fill="{StaticResource IdealForegroundColorBrush}"
                                  Stretch="Uniform" />
                        </Viewbox>
                        <Label VerticalAlignment="Center"
                               Content="{Binding SelectedSetting.Stack.InstallLocation}"
                               FontSize="16"
                               FontWeight="Bold"
                               Foreground="{StaticResource IdealForegroundColorBrush}" />
                    </StackPanel>
                    <Button Grid.Column="1"
                            Width="{StaticResource IconPathSize}"
                            Height="{StaticResource IconPathSize}"
                            Margin="6 0 6 0"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Command="{Binding SelectedSetting.SelectedTaskScheduler.RefreshCommand}"
                            Foreground="{StaticResource IdealForegroundColorBrush}"
                            Style="{DynamicResource MaterialDesignFloatingActionDarkButton}">
                        <Viewbox Width="{StaticResource IconSize}" Height="{StaticResource IconSize}">
                            <Path Width="{StaticResource IconPathSize}"
                                  Height="{StaticResource IconPathSize}"
                                  Data="M72.249903,16.14601 L87.915983,32.146067 76.249716,32.979412 C74.524256,61.351105 48.495424,70.90712 27.249985,59.480049 L32.499655,53.313236 C53.585453,60.915741 65.918699,53.806782 68.500223,33.062414 L56.416159,32.646412 z M43.615536,0.501091 C49.405912,0.54665947 55.416328,2.0205917 61.082994,5.1455288 L55.666002,10.978878 C39.166331,1.3953981 20.332998,12.728797 20.166214,32.311949 L31.915814,32.561954 15.915748,48.312008 0.5,32.561619 12.665534,32.645617 C10.853632,13.082975 26.244406,0.36438942 43.615536,0.501091 z"
                                  Fill="{StaticResource IdealForegroundColorBrush}"
                                  Stretch="Uniform" />
                        </Viewbox>
                    </Button>
                </Grid>
                <ScrollViewer Grid.Row="2"
                              Grid.Column="0"
                              Width="Auto"
                              Height="Auto"
                              HorizontalAlignment="Stretch"
                              VerticalAlignment="Stretch"
                              HorizontalContentAlignment="Stretch"
                              VerticalContentAlignment="Stretch">
                    <DataGrid AutoGenerateColumns="False" ItemsSource="{Binding SelectedSetting.SelectedTaskScheduler.Items}">
                        <DataGrid.Columns>
                            <DataGridTemplateColumn Header="{Binding Source={x:Static models:ResourceService.Instance}, Path=Resources.Word_Name, Mode=OneWay}" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate DataType="models:TaskSchedulerItem">
                                        <Label HorizontalAlignment="Left"
                                               VerticalAlignment="Center"
                                               Content="{Binding Name}" />
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                            <DataGridTemplateColumn Header="{Binding Source={x:Static models:ResourceService.Instance}, Path=Resources.Word_Status, Mode=OneWay}" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate DataType="models:TaskSchedulerItem">
                                        <Label HorizontalAlignment="Left"
                                               VerticalAlignment="Center"
                                               Content="{Binding TaskState,
                                                                 Converter={StaticResource TaskStateToStringConverter}}" />
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                            <DataGridTemplateColumn Header="{Binding Source={x:Static models:ResourceService.Instance}, Path=Resources.Word_NextRunTime, Mode=OneWay}" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate DataType="models:TaskSchedulerItem">
                                        <Label HorizontalAlignment="Left"
                                               VerticalAlignment="Center"
                                               Content="{Binding NextRunTime}" />
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                            <DataGridTemplateColumn Header="{Binding Source={x:Static models:ResourceService.Instance}, Path=Resources.Word_LastRunTime, Mode=OneWay}" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate DataType="models:TaskSchedulerItem">
                                        <Label HorizontalAlignment="Left"
                                               VerticalAlignment="Center"
                                               Content="{Binding LastRunTime}" />
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                            <DataGridTemplateColumn Header="{Binding Source={x:Static models:ResourceService.Instance}, Path=Resources.Word_Active, Mode=OneWay}" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate DataType="models:TaskSchedulerItem">
                                        <CheckBox HorizontalAlignment="Center"
                                                  VerticalAlignment="Center"
                                                  IsChecked="{Binding Enabled,
                                                                      Mode=TwoWay,
                                                                      UpdateSourceTrigger=PropertyChanged}" />
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                            <DataGridTemplateColumn Header="{Binding Source={x:Static models:ResourceService.Instance}, Path=Resources.Word_Actions, Mode=OneWay}" IsReadOnly="True">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate DataType="models:EnumerationItem">
                                        <StackPanel Orientation="Horizontal">
                                            <Button Width="{StaticResource LargeIconSize}"
                                                    Height="{StaticResource LargeIconSize}"
                                                    Margin="2"
                                                    VerticalAlignment="Center"
                                                    Command="{Binding DataContext.SelectedSetting.SelectedTaskScheduler.RunCommand,
                                                                      ElementName=_Root}"
                                                    CommandParameter="{Binding}"
                                                    Style="{DynamicResource MaterialDesignFloatingActionDarkButton}"
                                                    ToolTip="{Binding Source={x:Static models:ResourceService.Instance},
                                                                      Path=Resources.Tooltip_Run,
                                                                      Mode=OneWay}">
                                                <Viewbox Width="{StaticResource IconSize}" Height="{StaticResource IconSize}">
                                                    <Path Width="{StaticResource IconPathSize}"
                                                          Height="{StaticResource IconPathSize}"
                                                          Data="M32.416,22.25 L32.416,57.75 55.416008,40.162846 z M40,0 C62.091389,0 80,17.908609 80,40 80,62.091389 62.091389,80 40,80 17.908609,80 0,62.091389 0,40 0,17.908609 17.908609,0 40,0 z"
                                                          Fill="{StaticResource IdealForegroundColorBrush}"
                                                          Stretch="Fill" />
                                                </Viewbox>
                                            </Button>
                                            <Button Width="{StaticResource LargeIconSize}"
                                                    Height="{StaticResource LargeIconSize}"
                                                    Margin="2"
                                                    VerticalAlignment="Center"
                                                    Command="{Binding DataContext.SelectedSetting.SelectedTaskScheduler.StopCommand,
                                                                      ElementName=_Root}"
                                                    CommandParameter="{Binding}"
                                                    Style="{DynamicResource MaterialDesignFloatingActionDarkButton}"
                                                    ToolTip="{Binding Source={x:Static models:ResourceService.Instance},
                                                                      Path=Resources.Tooltip_End,
                                                                      Mode=OneWay}">
                                                <Viewbox Width="{StaticResource IconSize}" Height="{StaticResource IconSize}">
                                                    <Path Width="{StaticResource IconPathSize}"
                                                          Height="{StaticResource IconPathSize}"
                                                          Data="M25.4375,19.640001 L20,25.577566 34.18763,39.765644 20,53.952717 25.750256,59.702751 39.938385,45.515175 54.438412,60.014999 59.812973,54.640434 45.562733,40.390007 60.124985,25.827568 59.749992,25.452572 54.249996,19.952505 39.999996,34.202679 z M40.0625,0 C62.188408,0 80.125,17.936592 80.125,40.0625 80.125,62.188408 62.188408,80.125 40.0625,80.125 17.936592,80.125 0,62.188408 0,40.0625 0,17.936592 17.936592,0 40.0625,0 z"
                                                          Fill="{StaticResource IdealForegroundColorBrush}"
                                                          Stretch="Fill" />
                                                </Viewbox>
                                            </Button>
                                            <Button Width="{StaticResource LargeIconSize}"
                                                    Height="{StaticResource LargeIconSize}"
                                                    Margin="2"
                                                    VerticalAlignment="Center"
                                                    Command="{Binding DataContext.SelectedSetting.SelectedTaskScheduler.DeleteCommand,
                                                                      ElementName=_Root}"
                                                    CommandParameter="{Binding}"
                                                    Style="{DynamicResource MaterialDesignFloatingActionDarkButton}"
                                                    ToolTip="{Binding Source={x:Static models:ResourceService.Instance},
                                                                      Path=Resources.Tooltip_Delete,
                                                                      Mode=OneWay}">
                                                <Viewbox Width="{StaticResource IconSize}" Height="{StaticResource IconSize}">
                                                    <Path Width="{StaticResource IconPathSize}"
                                                          Height="{StaticResource IconPathSize}"
                                                          Data="M9.4099998,17.003 L9.4099998,21.128 28.595999,21.128 28.595999,17.003 z M19.003,0 C29.498066,0 38.006001,8.5079327 38.006001,19.003 38.006001,29.498066 29.498066,38.006001 19.003,38.006001 8.5079327,38.006001 0,29.498066 0,19.003 0,8.5079327 8.5079327,0 19.003,0 z"
                                                          Fill="{StaticResource IdealForegroundColorBrush}"
                                                          Stretch="Fill" />
                                                </Viewbox>
                                            </Button>
                                        </StackPanel>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                        </DataGrid.Columns>
                    </DataGrid>
                </ScrollViewer>
            </Grid>
        </DockPanel>
        <UserControl Background="#CC000000" Visibility="{Binding IsEmptyStacks, Converter={StaticResource CollapsedIfFalse}}">
            <Label HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Content="{Binding Source={x:Static models:ResourceService.Instance},
                                     Path=Resources.Msg_BitnamiRedmineStackIsNotPresent,
                                     Mode=OneWay}"
                   Foreground="{StaticResource IdealForegroundColorBrush}" />
        </UserControl>
    </Grid>
</UserControl>
{'fraction_non_alphanumeric': 0.08356311274509803, 'fraction_numerical': 0.08895016339869281, 'mean_word_length': 1.1041633091592802, 'pattern_counts': {'":': 0, '<': 233, '<?xml version=': 0, '>': 233, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 387, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4330863', 'n_tokens_mistral': 10485, 'n_tokens_neox': 7782, 'n_words': 1146}