12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <Window x:Class="HotelCalifornia.Client"
- 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="Client" Height="450" Width="800" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None" Icon="image/h1.png" Loaded="Window_Loaded">
- <Grid MouseDown="Grid_MouseDown">
- <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="148,54,148,336.6"/>
- <StackPanel Margin="6,134,547,91.6" Orientation="Vertical">
- <TextBox Name="familiatxt" Margin="10,0,0,0" FontSize="18" FontFamily="Century Gothic" Foreground="White" MaxLength="15"
- materialDesign:HintAssist.Hint="Фамилия клиента" TextChanged="familiatxt_TextChanged"/>
- <TextBox Name="nametxt" Margin="10,15,0,0" FontSize="18" FontFamily="Century Gothic" Foreground="White" MaxLength="10"
- materialDesign:HintAssist.Hint="Имя клиента" TextChanged="nametxt_TextChanged"/>
- <TextBox Name="otchestvotxt" Margin="10,15,0,0" FontSize="18" FontFamily="Century Gothic" Foreground="White" MaxLength="15"
- materialDesign:HintAssist.Hint="Отчество клиента" TextChanged="otchestvotxt_TextChanged"/>
- <TextBox Name="telephonetxt" Margin="10,15,0,0" FontSize="18" FontFamily="Century Gothic" Foreground="White" MaxLength="11"
- materialDesign:HintAssist.Hint="Телефон клиента" TextChanged="telephonetxt_TextChanged"/>
- <TextBox Name="passporttxt" Margin="10,15,0,0" FontSize="18" FontFamily="Century Gothic" Foreground="White" MaxLength="10"
- materialDesign:HintAssist.Hint="Серия и номер клиента" materialDesign:HintAssist.HelperText="Без пробелов" TextChanged="passporttxt_TextChanged"/>
- </StackPanel>
- <StackPanel Margin="10,364,537,-0.4" Orientation="Horizontal">
- <Button 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>
- <DataGrid Name="dataclient" IsReadOnly="True" HorizontalAlignment="Left" Height="257" Margin="290,134,0,0" VerticalAlignment="Top" Width="497" SelectionChanged="dataclient_SelectionChanged" />
- <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,87,10,0" TextWrapping="Wrap" Foreground="White" FontSize="22" VerticalAlignment="Top" Height="28" Width="229"/>
- <TextBlock Name="idclienttxt" Visibility="Hidden"/>
- <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="White" ToolTip="Обновить" Margin="508,76,244,325.6" Click="Refresh_Click">
- <materialDesign:PackIcon Kind="Refresh" />
- </Button>
- <TextBlock Name="idadmintxt" Visibility="Hidden"/>
- </Grid>
- </Window>
|