/
kochkatech
/
Queue
Обзор
Документация
Войти
/
kochkatech
/
Queue
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
src/Queue.Admin/MainWindow.xaml
82 строки
4 KB
kochkareal
init: Начальная структура проекта и панель администратора
24 июл 2026, 21:42
24 июл 2026, 21:42
cd5152a
Код
Авторство
О чём код?
<Window x:Class="Queue.Admin.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:vm="clr-namespace:Queue.Admin.ViewModels" xmlns:views="clr-namespace:Queue.Admin.Views" Title="Очередь — панель администратора" Height="640" Width="1000" Background="White"> <Window.Resources> <DataTemplate DataType="{x:Type vm:TicketsViewModel}"> <views:TicketsView /> </DataTemplate> <DataTemplate DataType="{x:Type vm:ServicesViewModel}"> <views:ServicesView /> </DataTemplate> <DataTemplate DataType="{x:Type vm:WindowsViewModel}"> <views:WindowsView /> </DataTemplate> <DataTemplate DataType="{x:Type vm:EmployeesViewModel}"> <views:EmployeesView /> </DataTemplate> <DataTemplate DataType="{x:Type vm:ReportsViewModel}"> <views:ReportsView /> </DataTemplate> <DataTemplate DataType="{x:Type vm:SettingsViewModel}"> <views:SettingsView /> </DataTemplate> <DataTemplate DataType="{x:Type vm:ScheduleViewModel}"> <views:ScheduleView /> </DataTemplate> <DataTemplate DataType="{x:Type vm:OneCIntegrationViewModel}"> <views:OneCIntegrationView /> </DataTemplate> <Style x:Key="NavItemStyle" TargetType="Button"> <Setter Property="Background" Value="Transparent" /> <Setter Property="Foreground" Value="White" /> <Setter Property="HorizontalContentAlignment" Value="Left" /> <Setter Property="Padding" Value="12,10" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}" /> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Foreground" Value="{StaticResource FocusBrush}" /> </Trigger> </Style.Triggers> </Style> </Window.Resources> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="200" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <!-- Боковая панель: фирменные цвета КОЧКАТЕХ --> <Border Grid.Column="0" Background="{StaticResource MainBrush}"> <StackPanel> <StackPanel Margin="20,24,20,24"> <TextBlock FontSize="20" FontWeight="Bold"> <Run Text="КОЧКА" Foreground="White" /> <Run Text="ТЕХ" Foreground="{StaticResource FocusBrush}" /> </TextBlock> <TextBlock Text="Очередь" Foreground="White" Opacity="0.7" FontSize="13" Margin="0,4,0,0" /> </StackPanel> <StackPanel Margin="8,0"> <Button Content="Талоны и очередь" Style="{StaticResource NavItemStyle}" Command="{Binding NavigateToTicketsCommand}" /> <Button Content="Услуги" Style="{StaticResource NavItemStyle}" Command="{Binding NavigateToServicesCommand}" /> <Button Content="Окна и кабинеты" Style="{StaticResource NavItemStyle}" Command="{Binding NavigateToWindowsCommand}" /> <Button Content="Сотрудники" Style="{StaticResource NavItemStyle}" Command="{Binding NavigateToEmployeesCommand}" /> <Button Content="Расписание" Style="{StaticResource NavItemStyle}" Command="{Binding NavigateToScheduleCommand}" /> <Button Content="Отчёты" Style="{StaticResource NavItemStyle}" Command="{Binding NavigateToReportsCommand}" /> <Button Content="Интеграция 1С" Style="{StaticResource NavItemStyle}" Command="{Binding NavigateToOneCCommand}" /> <Button Content="Настройки" Style="{StaticResource NavItemStyle}" Command="{Binding NavigateToSettingsCommand}" /> </StackPanel> </StackPanel> </Border> <!-- Контент --> <ContentControl Grid.Column="1" Content="{Binding CurrentViewModel}" /> </Grid> </Window>