/
WorkerTime
/
WorkerTimeDiplom
Обзор
Документация
Войти
/
WorkerTime
/
WorkerTimeDiplom
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Views/MainWindow.xaml
36 строк
2 KB
nikit
Логирование, автосохранение, восстановление пароля
05 июн 2026, 19:24
05 июн 2026, 19:24
715eb3d
Код
Авторство
О чём код?
<Window x:Class="WorkerTime.Views.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:vm="clr-namespace:WorkerTime.ViewModels" Title="Учёт рабочего времени" Height="700" Width="1100" WindowStartupLocation="CenterScreen"> <Window.DataContext> <vm:MainViewModel/> </Window.DataContext> <Grid> <Grid.RowDefinitions> <RowDefinition Height="50"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Border Grid.Row="0" Background="#4e3d6b"> <StackPanel Orientation="Horizontal"> <Button Content="Сотрудники" Command="{Binding ShowEmployeesCommand}" Style="{StaticResource MenuButtonStyle}"/> <Button Content="Учёт времени" Command="{Binding ShowWorkRecordsCommand}" Style="{StaticResource MenuButtonStyle}"/> <Button Content="Настройки" Command="{Binding ShowSettingsCommand}" Style="{StaticResource MenuButtonStyle}"/> <Button Content="Выход" Style="{StaticResource MenuButtonStyle}" Click="ExitButton_Click"/> </StackPanel> </Border> <ContentControl Grid.Row="1" Content="{Binding CurrentView}"/> </Grid> </Window>