Skip to content

Commit

Permalink
SudokuBoard displays index of row and column; added application icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtanr committed Aug 13, 2019
1 parent a9d5e95 commit b0db2a3
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 17 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ Out of the well known [Sudoku Solving Techniques](https://sudoku9x9.com/sudoku_s
* Naked Pair
* Naked Triple
* Naked Quad
* Hidden Pair
* Hidden Triple
* Hidden Quad
4 changes: 2 additions & 2 deletions SimpleSudokuSolver.UI/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="clr-namespace:SimpleSudokuSolver.UI"
mc:Ignorable="d"
Title="Sudoku" Height="610" Width="550"
Title="Sudoku" Height="634" Width="566"
WindowStartupLocation="CenterScreen" ResizeMode="NoResize"
WindowStyle="ToolWindow">
WindowStyle="SingleBorderWindow">
<Window.InputBindings>
<KeyBinding Modifiers="Control" Key="N" Command="{Binding NewGameCommand}" />
<KeyBinding Modifiers="Control" Key="L" Command="{Binding LoadGameCommand}" />
Expand Down
6 changes: 3 additions & 3 deletions SimpleSudokuSolver.UI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.6.0.0")]
[assembly: AssemblyFileVersion("0.6.0.0")]
[assembly: AssemblyInformationalVersion("0.6.0.0")]
[assembly: AssemblyVersion("0.7.0.0")]
[assembly: AssemblyFileVersion("0.7.0.0")]
[assembly: AssemblyInformationalVersion("0.7.0.0")]
6 changes: 6 additions & 0 deletions SimpleSudokuSolver.UI/SimpleSudokuSolver.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>icon.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down Expand Up @@ -104,5 +107,8 @@
<Name>SimpleSudokuSolver</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Resource Include="icon.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
65 changes: 54 additions & 11 deletions SimpleSudokuSolver.UI/SudokuBoard.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,59 @@
mc:Ignorable="d"
d:DesignHeight="540" d:DesignWidth="540">
<Grid Margin="2">
<UniformGrid>
<local:SudokuBlock x:Name="block1" />
<local:SudokuBlock x:Name="block2" />
<local:SudokuBlock x:Name="block3" />
<local:SudokuBlock x:Name="block4" />
<local:SudokuBlock x:Name="block5" />
<local:SudokuBlock x:Name="block6" />
<local:SudokuBlock x:Name="block7" />
<local:SudokuBlock x:Name="block8" />
<local:SudokuBlock x:Name="block9" />
</UniformGrid>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="24" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="16" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>

<Grid.Resources>
<Style TargetType="Label">
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="Margin" Value="0" />
<Setter Property="VerticalContentAlignment" Value="Center" />
</Style>
</Grid.Resources>

<UniformGrid Grid.Row="0" Grid.Column="1" Columns="9" Margin="2,0,2,0">
<Label Content="1" />
<Label Content="2" />
<Label Content="3" Margin="0,0,4,0" />
<Label Content="4" Margin="4,0,0,0" />
<Label Content="5" />
<Label Content="6" Margin="0,0,4,0" />
<Label Content="7" Margin="4,0,0,0" />
<Label Content="8" />
<Label Content="9" />
</UniformGrid>

<UniformGrid Grid.Row="1" Grid.Column="0" Rows="9" Margin="0,2,0,2">
<Label Content="1" />
<Label Content="2" />
<Label Content="3" Margin="0,0,0,4" />
<Label Content="4" Margin="0,4,0,0" />
<Label Content="5" />
<Label Content="6" Margin="0,0,0,4" />
<Label Content="7" Margin="0,4,0,0" />
<Label Content="8" />
<Label Content="9" />
</UniformGrid>

<UniformGrid Grid.Row="1" Grid.Column="1" >
<local:SudokuBlock x:Name="block1" />
<local:SudokuBlock x:Name="block2" />
<local:SudokuBlock x:Name="block3" />
<local:SudokuBlock x:Name="block4" />
<local:SudokuBlock x:Name="block5" />
<local:SudokuBlock x:Name="block6" />
<local:SudokuBlock x:Name="block7" />
<local:SudokuBlock x:Name="block8" />
<local:SudokuBlock x:Name="block9" />
</UniformGrid>
</Grid>
</Grid>
</UserControl>
Binary file added SimpleSudokuSolver.UI/icon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion SimpleSudokuSolver/SimpleSudokuSolver.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>0.6.0</Version>
<Version>0.7.0</Version>
<Authors>Robert Kurtanjek</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/kurtanr/SimpleSudokuSolver</PackageProjectUrl>
Expand Down
Binary file modified images/SimpleSudokuSolver.UI.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b0db2a3

Please sign in to comment.