12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <Window xmlns="https://github.com/avaloniaui"
- 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"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="500"
- x:Class="praktika3_graph_interface.MainWindow"
- Title="praktika3_graph_interface">
- <Window.Styles>
- <Style Selector="TextBox.textBoxesFIO">
- <Setter Property="Foreground" Value="#759242" />
- <Setter Property="Background" Value="#FFDED3A6" />
- <Setter Property="Margin" Value="5"/>
- </Style>
- <Style Selector="TextBox.textBoxesNum">
- <Setter Property="Foreground" Value="#759242" />
- <Setter Property="Background" Value="#FFDED3A6" />
- <Setter Property="Margin" Value="5"/>
- </Style>
- <Style Selector="ComboBox">
- <Setter Property="Foreground" Value="#759242" />
- <Setter Property="Background" Value="#FFDED3A6" />
- <Setter Property="Margin" Value="5"/>
- </Style>
- <Style Selector="RadioButton">
- <Setter Property="Foreground" Value="#000000"/>
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="Margin" Value="10"/>
- </Style>
- <Style Selector="Button.buttonWriteToFile">
- <Setter Property="Foreground" Value="#000000"/>
- <Setter Property="Background" Value="#FFDED3A6" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="Margin" Value="10"/>
- </Style>
- </Window.Styles>
- <Grid Background="#F2F2EF">
- <StackPanel IsVisible="True" VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Vertical" Width="400" Name="form">
- <StackPanel>
- <TextBox Classes="textBoxesFIO" Name="tbSurname" Watermark="Фамилия"></TextBox>
- </StackPanel>
- <StackPanel>
- <TextBox Classes="textBoxesFIO" Name="tbName" Watermark="Имя"></TextBox>
- </StackPanel>
- <StackPanel>
- <TextBox Classes="textBoxesFIO" Name="tbPatronymic" Watermark="Отчество"></TextBox>
- </StackPanel>
- <StackPanel>
- <TextBox Classes="textBoxesNum" Name="tbPhone" Watermark="8(XXX)XXX-XX-XX"></TextBox>
- </StackPanel>
- <StackPanel>
- <TextBox Classes="textBoxesNum" Name="tbBirthday" Watermark="01"></TextBox>
- </StackPanel>
- <ComboBox Name="cbMonth" SelectedIndex="0" Width="389">
- <ComboBoxItem IsEnabled="false">Выберите месяц рождения</ComboBoxItem>
- <ComboBoxItem>Январь</ComboBoxItem>
- <ComboBoxItem>Февраль</ComboBoxItem>
- <ComboBoxItem>Март</ComboBoxItem>
- <ComboBoxItem>Апрель</ComboBoxItem>
- <ComboBoxItem>Май</ComboBoxItem>
- <ComboBoxItem>Июнь</ComboBoxItem>
- <ComboBoxItem>Июль</ComboBoxItem>
- <ComboBoxItem>Август</ComboBoxItem>
- <ComboBoxItem>Сентябрь</ComboBoxItem>
- <ComboBoxItem>Октябрь</ComboBoxItem>
- <ComboBoxItem>Ноябрь</ComboBoxItem>
- <ComboBoxItem>Декабрь</ComboBoxItem>
- </ComboBox>
- <StackPanel>
- <TextBox Classes="textBoxesNum" Name="tbBirthyear" Watermark="0001"></TextBox>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <RadioButton Name="rbM">Мужской</RadioButton>
- <RadioButton Name="rbF">Женский</RadioButton>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <Button HorizontalAlignment="Center" Classes="buttonWriteToFile" Name="bWrite" Click="getUser">Записать в файл</Button>
- <Button HorizontalAlignment="Center" Classes="buttonWriteToFile" Name="bRead" Click="showUsers">Показать содержимое файла</Button>
- </StackPanel>
- <StackPanel>
- <Button Classes="buttonWriteToFile" HorizontalAlignment="Center" VerticalAlignment="Center" Click="hideSuccess" Name="bSuccess" IsVisible="false">
- Данные успешно записаны!
- </Button>
- </StackPanel>
- </StackPanel>
- <StackPanel Name="userlist" VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Vertical" Width="400">
- <Button Name="buttonReturn" Classes="buttonWriteToFile" VerticalAlignment="Top" Click="bReturn" IsVisible="False">Назад</Button>
- </StackPanel>
- </Grid>
- </Window>
|