<commit_before>﻿<UserControl x:Class="PlantronicsClientAddIn.Views.AddinPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vm="clr-namespace:PlantronicsClientAddIn.ViewModels"
             mc:Ignorable="d"
             Background="White"
            
             d:DesignHeight="400" d:DesignWidth="600">
    <UserControl.Resources>
        <Style TargetType="ComboBox">
            <Setter Property="Height" Value="25"/>
        </Style>
        <DataTemplate x:Key="StatusTemplate">
            <StackPanel Orientation="Horizontal">
                <Image Source="{Binding Image}" Height="16" Width="16"></Image>
                <TextBlock Text="{Binding Text}"></TextBlock>
            </StackPanel>
        </DataTemplate>
    </UserControl.Resources>
    <Grid >
        <Grid.RowDefinitions>
            
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="293"/>
            <ColumnDefinition/>
            
        </Grid.ColumnDefinitions>
        <GroupBox Grid.Column="0" Margin="5">
            
            <GroupBox.DataContext>
                <vm:StatusViewModel/>
            </GroupBox.DataContext>

            <GroupBox.Header>Headset Status</GroupBox.Header>
                
            <StackPanel>
                <Label Foreground="Red" Visibility="{Binding ErrorVisibility}" >No Headset Detected</Label>
                <Grid Visibility="{Binding ConnectionVisibility}">
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="120"/>
                        <ColumnDefinition/>
                        
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Row="0" Grid.Column="0">Product Name:</TextBlock>
                    <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding ProductName}"></TextBlock>
                    <TextBlock Grid.Row="1" Grid.Column="0">Manufacturer Name:</TextBlock>
                    <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding ManufacturerName}"></TextBlock>
                   <!-- <TextBlock Grid.Row="2" Grid.Column="0">Internal Name:</TextBlock>
                    <TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding InternalName}"></TextBlock>-->
                    <TextBlock Grid.Row="3" Grid.Column="0">Serial Number:</TextBlock>
                    <TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding SerialNumber}"></TextBlock>
                    <TextBlock Grid.Row="4" Grid.Column="0">Version Number:</TextBlock>
                    <TextBlock Grid.Row="4" Grid.Column="1" Text="{Binding VersionNumber}"></TextBlock>
                </Grid>
                <StackPanel Orientation="Horizontal" Visibility="{Binding MuteVisibility}" >
                   
                    <Image Source="../audio-volume-muted.png" Height="36" Width="36" HorizontalAlignment="Left"/>
                    <TextBlock Text="Muted" Foreground="Red" VerticalAlignment="Center" ></TextBlock>

                </StackPanel>

            </StackPanel>
        </GroupBox>
        <GroupBox Grid.Column="1" Margin="5">
            <GroupBox.DataContext>
                <vm:SettingsViewModel/>
            </GroupBox.DataContext>
            <GroupBox.Resources>
                <Style TargetType="CheckBox">
                    <Setter Property="VerticalAlignment" Value="Center"/>
                    <Setter Property="Height" Value="22"/>
                </Style>
                <Style TargetType="ComboBox">
                    <Setter Property="Width" Value="150px"/>
                    <Setter Property="Margin" Value="4"/>
                    <Setter Property="Height" Value="22"/>
                </Style>
            </GroupBox.Resources>
            <GroupBox.Header>Settings</GroupBox.Header>
            <ScrollViewer>
            <StackPanel>
                <GroupBox Grid.Column="1" Margin="5">
                    <GroupBox.Header>When plantronics device is disconnected</GroupBox.Header>
                    <StackPanel>
                            <StackPanel Orientation="Horizontal">
                                <CheckBox IsChecked="{Binding DeviceDisconnectChangeStatus}">Change Status</CheckBox>
                                <ComboBox ItemTemplate="{StaticResource StatusTemplate}" 
                                          IsEnabled="{Binding DeviceDisconnectChangeStatus}" 
                                          ItemsSource="{Binding StatusList}"
                                          SelectedValue="{Binding DeviceDisconnectStatus, Mode=TwoWay}"
                                          
                                          ></ComboBox>
                            </StackPanel>
                            <CheckBox  IsChecked="{Binding DeviceDisconnectNotification}">Show Notification</CheckBox>
                            <CheckBox  IsChecked="{Binding ShouldLogOutOnDeviceDisconnect}">Log Out</CheckBox>
                        </StackPanel>
                </GroupBox>
                <GroupBox Grid.Column="1" Margin="5">
                    <GroupBox.Header>When plantronics device is connected</GroupBox.Header>
                    <StackPanel>
                            <StackPanel Orientation="Horizontal">
                                <CheckBox IsChecked="{Binding DeviceConnectChangeStatus}">Change Status</CheckBox>
                                <ComboBox ItemTemplate="{StaticResource StatusTemplate}" 
                                          IsEnabled="{Binding DeviceConnectChangeStatus}" 
                                          ItemsSource="{Binding StatusList}"
                                          SelectedValue="{Binding DeviceConnectStatus, Mode=TwoWay}" 
                                          
                                          ></ComboBox>
                            </StackPanel>
                            <CheckBox  IsChecked="{Binding DeviceConnectNotification}">Show Notification</CheckBox>
                        </StackPanel>
                </GroupBox>
                
                <GroupBox Grid.Column="1" Margin="5">
                    <GroupBox.Header>When headset is connected</GroupBox.Header>
                    <StackPanel>
                            <StackPanel Orientation="Horizontal">
                                <CheckBox IsChecked="{Binding HeadsetConnectChangeStatus}">Change Status</CheckBox>
                               <ComboBox ItemTemplate="{StaticResource StatusTemplate}" 
                                          IsEnabled="{Binding HeadsetConnectChangeStatus}" 
                                          ItemsSource="{Binding StatusList}"
                                          SelectedValue="{Binding HeadsetConnectStatus, Mode=TwoWay}" 
                                          
                                          ></ComboBox>
                            </StackPanel>
                            <CheckBox  IsChecked="{Binding HeadsetConnectNotification}">Show Notification</CheckBox>
                        </StackPanel>
                </GroupBox>
                <GroupBox Grid.Column="1" Margin="5">
                    <GroupBox.Header>When headset is disconnected</GroupBox.Header>
                    <StackPanel>
                            <StackPanel Orientation="Horizontal">
                                <CheckBox IsChecked="{Binding HeadsetDisconnectChangeStatus}">Change Status</CheckBox>
                                  <ComboBox ItemTemplate="{StaticResource StatusTemplate}" <commit_msg>updating the layout<commit_after>﻿<UserControl x:Class="PlantronicsClientAddIn.Views.AddinPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vm="clr-namespace:PlantronicsClientAddIn.ViewModels"
             mc:Ignorable="d"
             Background="White"
            
             d:DesignHeight="400" d:DesignWidth="600">
    <UserControl.Resources>
        <Style TargetType="ComboBox">
            <Setter Property="Height" Value="25"/>
        </Style>
        <DataTemplate x:Key="StatusTemplate">
            <StackPanel Orientation="Horizontal">
                <Image Source="{Binding Image}" Height="16" Width="16"></Image>
                <TextBlock Text="{Binding Text}" Margin="7,0,0,0"></TextBlock>
            </StackPanel>
        </DataTemplate>
    </UserControl.Resources>
    <Grid >
        <Grid.RowDefinitions>
            
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="293"/>
            <ColumnDefinition/>
            
        </Grid.ColumnDefinitions>
        <GroupBox Grid.Column="0" Margin="5">
            
            <GroupBox.DataContext>
                <vm:StatusViewModel/>
            </GroupBox.DataContext>

            <GroupBox.Header>Headset Status</GroupBox.Header>
                
            <StackPanel>
                <Label Foreground="Red" Visibility="{Binding ErrorVisibility}" >No Headset Detected</Label>
                <Grid Visibility="{Binding ConnectionVisibility}">
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="120"/>
                        <ColumnDefinition/>
                        
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Row="0" Grid.Column="0">Product Name:</TextBlock>
                    <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding ProductName}"></TextBlock>
                    <TextBlock Grid.Row="1" Grid.Column="0">Manufacturer Name:</TextBlock>
                    <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding ManufacturerName}"></TextBlock>
                   <!-- <TextBlock Grid.Row="2" Grid.Column="0">Internal Name:</TextBlock>
                    <TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding InternalName}"></TextBlock>-->
                    <TextBlock Grid.Row="3" Grid.Column="0">Serial Number:</TextBlock>
                    <TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding SerialNumber}"></TextBlock>
                    <TextBlock Grid.Row="4" Grid.Column="0">Version Number:</TextBlock>
                    <TextBlock Grid.Row="4" Grid.Column="1" Text="{Binding VersionNumber}"></TextBlock>
                </Grid>
                <StackPanel Orientation="Horizontal" Visibility="{Binding MuteVisibility}" >
                   
                    <Image Source="../audio-volume-muted.png" Height="36" Width="36" HorizontalAlignment="Left"/>
                    <TextBlock Text="Muted" Foreground="Red" VerticalAlignment="Center" ></TextBlock>

                </StackPanel>

            </StackPanel>
        </GroupBox>
        <GroupBox Grid.Column="1" Margin="5">
            <GroupBox.DataContext>
                <vm:SettingsViewModel/>
            </GroupBox.DataContext>
            <GroupBox.Resources>
                <Style TargetType="CheckBox">
                    <Setter Property="VerticalAlignment" Value="Center"/>
                    <Setter Property="Height" Value="22"/>
                </Style>
                <Style TargetType="ComboBox">
                    <Setter Property="Width" Value="150px"/>
                    <Setter Property="Margin" Value="4"/>
                    <Setter Property="Height" Value="22"/>
                </Style>
            </GroupBox.Resources>
            <GroupBox.Header>Settings</GroupBox.Header>
            <ScrollViewer>
            <StackPanel>

                    <GroupBox Grid.Column="1" Margin="5">
                        <GroupBox.Header>When plantronics device is connected</GroupBox.Header>
                        <StackPanel>
                            <StackPanel Orientation="Horizontal">
                                <CheckBox IsChecked="{Binding DeviceConnectChangeStatus}">Change Status</CheckBox>
                                <ComboBox ItemTemplate="{StaticResource StatusTemplate}" 
                                          IsEnabled="{Binding DeviceConnectChangeStatus}" 
                                          ItemsSource="{Binding StatusList}"
                                          SelectedValue="{Binding DeviceConnectStatus, Mode=TwoWay}" 
                                          
                                          ></ComboBox>
                            </StackPanel>
                            <CheckBox  IsChecked="{Binding DeviceConnectNotification}">Show Notification</CheckBox>
                        </StackPanel>
                    </GroupBox>

                    
                <GroupBox Grid.Column="1" Margin="5">
                    <GroupBox.Header>When plantronics device is disconnected</GroupBox.Header>
                    <StackPanel>
                            <StackPanel Orientation="Horizontal">
                                <CheckBox IsChecked="{Binding DeviceDisconnectChangeStatus}">Change Status</CheckBox>
                                <ComboBox ItemTemplate="{StaticResource StatusTemplate}" 
                                          IsEnabled="{Binding DeviceDisconnectChangeStatus}" 
                                          ItemsSource="{Binding StatusList}"
                                          SelectedValue="{Binding DeviceDisconnectStatus, Mode=TwoWay}"
                                          
                                          ></ComboBox>
                            </StackPanel>
                            <CheckBox  IsChecked="{Binding DeviceDisconnectNotification}">Show Notification</CheckBox>
                            <CheckBox  IsChecked="{Binding ShouldLogOutOnDeviceDisconnect}">Log Out</CheckBox>
                        </StackPanel>
                </GroupBox>
             
                <GroupBox Grid.Column="1" Margin="5">
                    <GroupBox.Header>When headset is connected</GroupBox.Header>
                    <StackPanel>
                            <StackPanel Orientation="Horizontal">
                                <CheckBox IsChecked="{Binding HeadsetConnectChangeStatus}">Change Status</CheckBox>
                               <ComboBox ItemTemplate="{StaticResource StatusTemplate}" 
                                          IsEnabled="{Binding HeadsetConnectChangeStatus}" 
                                          ItemsSource="{Binding StatusList}"
                                          SelectedValue="{Binding HeadsetConnectStatus, Mode=TwoWay}" 
                                          
                                          ></ComboBox>
                            </StackPanel>
                            <CheckBox  IsChecked="{Binding HeadsetConnectNotification}">Show Notification</CheckBox>
                        </StackPanel>
                </GroupBox>
                <GroupBox Grid.Column="1" Margin="5">
                    <GroupBox.Header>When headset is disconnected</GroupBox.Header>
                    <StackPanel>
                            <StackPanel Orientation="Horizontal">
                                <CheckBox IsChecked="{Binding HeadsetDisconnectChangeStatus}">Change Status</CheckBox>
                                  <ComboBox ItemTemplate="{StaticResource StatusTemplate}" 
{'fraction_non_alphanumeric': 0.10693942549151712, 'fraction_numerical': 0.00979971825810008, 'mean_word_length': 1.4196799051570836, 'pattern_counts': {'":': 0, '<': 287, '<?xml version=': 0, '>': 285, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 56, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6975946', 'n_tokens_mistral': 3808, 'n_tokens_neox': 3406, 'n_words': 575}