12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <Window x:Class="HotelCalifornia.Room"
- 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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:local="clr-namespace:HotelCalifornia"
- mc:Ignorable="d"
- Title="Room" Height="450" Width="800" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None" Icon="image/h1.png">
- <Grid MouseDown="Grid_MouseDown" Loaded="Grid_Loaded" >
- <Grid.Background>
- <LinearGradientBrush StartPoint="0.1,0" EndPoint="0.9,1">
- <GradientStop Color="#7E42F5" Offset="1" />
- <GradientStop Color="#383E7A" Offset="0"/>
- </LinearGradientBrush>
- </Grid.Background>
- <Label Content="Комнаты" Foreground="White" FontSize="35" FontFamily="Century Gothic" HorizontalAlignment="Center" Margin="167,46,167,344.6"/>
- <DataGrid Name="dataroom" IsReadOnly="True" HorizontalAlignment="Left" Height="257" Margin="293,138,0,0" BorderThickness="1" BorderBrush="Black" VerticalAlignment="Top" Width="497" SelectionChanged="dataroom_SelectionChanged" />
- <StackPanel Margin="6,124,547,175.6" Orientation="Vertical">
- <TextBox Name="numbertxt" Margin="10,15,0,0" FontSize="18" FontFamily="Century Gothic" Foreground="White" MaxLength="3"
- materialDesign:HintAssist.Hint="Номер комнаты" PreviewTextInput="numbertxt_PreviewTextInput" PreviewKeyDown="numbertxt_PreviewKeyDown"/>
- <TextBox Name="telephonetxt" Margin="10,15,0,0" FontSize="18" FontFamily="Century Gothic" Foreground="White" MaxLength="9"
- materialDesign:HintAssist.Hint="Телефон комнаты" PreviewTextInput="telephonetxt_PreviewTextInput" PreviewKeyDown="telephonetxt_PreviewKeyDown"/>
- <Label Content="Статус комнаты:" Margin="10,15,0,0" Foreground="White" FontSize="18" FontFamily="Century Gothic"/>
- </StackPanel>
- <Label Content="Свободна" Margin="17,274,676,135.6" Foreground="White" FontSize="18" FontFamily="Century Gothic"/>
- <RadioButton IsChecked="True" Name="yescheck" Foreground="White" HorizontalAlignment="Left" Margin="128,278,0,0" VerticalAlignment="Top" Height="23" Width="19" Background="#FFF3EFFA"/>
- <Label Content="Да" Margin="146,275,620,139.6" Foreground="White" FontSize="16" FontFamily="Century Gothic"/>
- <RadioButton Name="nocheck" Foreground="White" HorizontalAlignment="Left" Margin="190,278,0,0" VerticalAlignment="Top" Height="23" Width="19" Background="#FFF3EFFA"/>
- <Label Content="Нет" Margin="208,275,555,139.6" Foreground="White" FontSize="16" FontFamily="Century Gothic"/>
- <StackPanel Margin="0,320,547,43.6" Orientation="Horizontal">
- <Button Name="Add" Style="{StaticResource MaterialDesignIconButton}" Foreground="White" ToolTip="Добавить" Margin="25,0,0,0" Click="Add_Click">
- <materialDesign:PackIcon Kind="Add" />
- </Button>
- <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="White" ToolTip="Редактировать" Margin="25,0,0,0" Click="Update_Click">
- <materialDesign:PackIcon Kind="Edit" />
- </Button>
- <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="White" ToolTip="Удалить" Margin="25,0,0,0" Click="Delete_Click">
- <materialDesign:PackIcon Kind="Delete" />
- </Button>
- </StackPanel>
- <Button Style="{StaticResource MaterialDesignIconButton}" ToolTip="Вернуться к окну выбора функции" Margin="10,10,742,391.6" Click="Back">
- <materialDesign:PackIcon Kind="Backburger" Foreground="White"/>
- </Button>
- <Button Style="{StaticResource MaterialDesignIconButton}" ToolTip="Выход из приложения" Margin="742,10,10,391.6" Click="Close">
- <materialDesign:PackIcon Kind="ExitToApp" Foreground="White"/>
- </Button>
- <Button Name="WindMin"
- Style="{StaticResource MaterialDesignIconButton}" ToolTip="Свернуть окно" Margin="694,10,58,391.6" Click="WindMin_Click">
- <materialDesign:PackIcon Kind="WindowMinimize" Foreground="White"/>
- </Button>
- <TextBlock Name="timetxt" HorizontalAlignment="Center" FontFamily="Century Gothic" Margin="561,88,10,0" TextWrapping="Wrap" Foreground="White" FontSize="22" VerticalAlignment="Top" Height="28" Width="229"/>
- <TextBlock Name="idroomtxt" Visibility="Hidden"/>
- <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="White" ToolTip="Обновить" Margin="508,76,244,325.6" Click="Refresh_Click">
- <materialDesign:PackIcon Kind="Refresh" />
- </Button>
- </Grid>
- </Window>
|