/
ylust
/
Study
Обзор
Документация
Войти
/
ylust
/
Study
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
EightQueensWPF/MainWindow.xaml
40 строк
2 KB
User
Add Blazor web application for Eight Queens problem
23 май 2026, 00:03
23 май 2026, 00:03
c2b2478
Код
Авторство
О чём код?
<Window x:Class="EightQueensWPF.MainWindow" 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:local="clr-namespace:EightQueensWPF" mc:Ignorable="d" Title="Задача о восьми ферзях" Height="600" Width="800"> <Grid Margin="10"> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <!-- Chessboard Canvas --> <Canvas Name="chessboardCanvas" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" /> <!-- Solution Info Label --> <Label Name="solutionInfoLabel" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontWeight="Bold" Margin="10" /> <!-- Navigation Buttons --> <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" Margin="10"> <Button Content="|◄" ToolTip="Первое решение" Width="80" Height="40" Margin="0,0,10,0" Click="FirstButton_Click" /> <Button Content="◄" ToolTip="Предыдущее решение" Width="80" Height="40" Margin="0,0,10,0" Click="PreviousButton_Click" /> <Button Content="►" ToolTip="Следующее решение" Width="80" Height="40" Margin="0,0,10,0" Click="NextButton_Click" /> <Button Content="►|" ToolTip="Последнее решение" Width="80" Height="40" Click="LastButton_Click" /> </StackPanel> <!-- Statistics Panel --> <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Center" Margin="10"> <TextBlock Text="Всего решений: " FontSize="14" VerticalAlignment="Center" /> <TextBlock Name="totalSolutionsTextBlock" Text="0" FontSize="14" FontWeight="Bold" Margin="5,0" /> <TextBlock Text="| Текущее: " FontSize="14" VerticalAlignment="Center" Margin="20,0" /> <TextBlock Name="currentSolutionTextBlock" Text="0" FontSize="14" FontWeight="Bold" Margin="5,0" /> </StackPanel> </Grid> </Window>