/
kochkatech
/
Queue
Обзор
Документация
Войти
/
kochkatech
/
Queue
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
src/Queue.Admin/Views/SettingsView.xaml
46 строк
3 KB
kochkareal
init: Начальная структура проекта и панель администратора
24 июл 2026, 21:42
24 июл 2026, 21:42
cd5152a
Код
Авторство
О чём код?
<UserControl x:Class="Queue.Admin.Views.SettingsView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <ScrollViewer VerticalScrollBarVisibility="Auto"> <StackPanel Margin="24" MaxWidth="480" HorizontalAlignment="Left"> <TextBlock Text="Настройки" FontSize="20" FontWeight="Bold" Margin="0,0,0,16" /> <TextBlock Text="Профиль организации" FontWeight="Bold" Margin="0,0,0,8" /> <TextBlock Text="Название компании" FontSize="11" Foreground="Gray" Margin="0,0,0,2" /> <TextBox Text="{Binding OrganizationName, UpdateSourceTrigger=PropertyChanged}" Margin="0,0,0,12" /> <TextBlock Text="Логотип" FontSize="11" Foreground="Gray" Margin="0,0,0,2" /> <StackPanel Orientation="Horizontal" Margin="0,0,0,12"> <TextBox Text="{Binding LogoPath}" Width="320" Margin="0,0,8,0" IsReadOnly="True" /> <Button Content="Выбрать файл" Command="{Binding BrowseLogoCommand}" /> </StackPanel> <TextBlock Text="Фирменные цвета" FontWeight="Bold" Margin="0,8,0,8" /> <TextBlock Text="Основной цвет (hex, например #4060E9)" FontSize="11" Foreground="Gray" Margin="0,0,0,2" /> <TextBox Text="{Binding MainColorHex, UpdateSourceTrigger=PropertyChanged}" Margin="0,0,0,12" /> <TextBlock Text="Акцентный цвет (hex или название, например GreenYellow)" FontSize="11" Foreground="Gray" Margin="0,0,0,2" /> <TextBox Text="{Binding FocusColorHex, UpdateSourceTrigger=PropertyChanged}" Margin="0,0,0,8" /> <Button Content="Сбросить к цветам КОЧКАТЕХ" Command="{Binding ResetColorsCommand}" HorizontalAlignment="Left" Margin="0,0,0,12" /> <TextBlock Text="Лицензия и активация" FontWeight="Bold" Margin="0,8,0,8" /> <TextBox Text="{Binding LicenseKey, UpdateSourceTrigger=PropertyChanged}" Margin="0,0,0,12" /> <TextBlock Text="Часовой пояс" FontWeight="Bold" Margin="0,8,0,8" /> <TextBox Text="{Binding TimeZone, UpdateSourceTrigger=PropertyChanged}" Margin="0,0,0,20" /> <Button Content="Сохранить настройки" Command="{Binding SaveCommand}" HorizontalAlignment="Left" Margin="0,0,0,20" /> <TextBlock Text="Резервное копирование" FontWeight="Bold" Margin="0,0,0,8" /> <Button Content="Создать резервную копию БД" Command="{Binding BackupDatabaseCommand}" HorizontalAlignment="Left" Margin="0,0,0,20" /> <TextBlock Text="Обновление" FontWeight="Bold" Margin="0,0,0,8" /> <TextBlock Text="Установщик и автообновление настраиваются на этапе подключения инсталлятора (см. installer/README.md)." Foreground="Gray" TextWrapping="Wrap" Margin="0,0,0,20" /> <TextBlock Text="{Binding StatusMessage}" Foreground="Green" TextWrapping="Wrap" /> </StackPanel> </ScrollViewer> </UserControl>