|
@@ -1,10 +1,12 @@
|
|
|
<UserControl xmlns="https://github.com/avaloniaui"
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
- xmlns:vm="using:FoodLogProject.ViewModels"
|
|
|
+ xmlns:vm="using:FoodLogProject.ViewModels"
|
|
|
+ x:DataType="vm:MainWindowViewModel"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
x:Class="FoodLogProject.Views.Page3">
|
|
|
+ <ScrollViewer >
|
|
|
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" >
|
|
|
<StackPanel Name="Registration">
|
|
|
<StackPanel>
|
|
@@ -34,7 +36,7 @@
|
|
|
Данные для вашего плана
|
|
|
</TextBlock>
|
|
|
<TextBlock>Никнейм</TextBlock>
|
|
|
- <TextBox Name="tbName" Watermark="Введите никнейм"></TextBox>
|
|
|
+ <TextBox Text="{Binding Page3VM.CurrentUser.CustomerNickname}" Watermark="Введите никнейм"></TextBox>
|
|
|
<TextBlock Name="ShowMessageName" Foreground="Red"></TextBlock>
|
|
|
|
|
|
</StackPanel>
|
|
@@ -42,46 +44,35 @@
|
|
|
<StackPanel >
|
|
|
|
|
|
<TextBlock>Номер телефона</TextBlock>
|
|
|
- <TextBox Name="tbNumber" Watermark="+7***********"></TextBox>
|
|
|
+ <TextBox Text="{Binding Page3VM.CurrentUser.CustomerPhone}" Watermark="+7***********"></TextBox>
|
|
|
<TextBlock Name="ShowMessageNumber" Foreground="Red"></TextBlock>
|
|
|
- <TextBlock >Пароль:</TextBlock>
|
|
|
- <TextBox Name="tbPassword" PasswordChar="*" Watermark="Введите пароль"/>
|
|
|
- <TextBlock Name="ShowMessageParol" Foreground="Red"></TextBlock>
|
|
|
+ <TextBlock >Пароль:</TextBlock>
|
|
|
+ <TextBox Text="{Binding Page3VM.CurrentUser.CustomerPassword}" PasswordChar="*" Watermark="Введите пароль"/>
|
|
|
+ <TextBlock Name="ShowMessageParol" Foreground="Red"></TextBlock>
|
|
|
|
|
|
<TextBlock Margin="0,10,0,0" FontSize="16">Пол</TextBlock>
|
|
|
</StackPanel>
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
|
|
|
- <RadioButton Name="rbM" FontSize ="16" Margin="0,0,30,0">Мужской</RadioButton>
|
|
|
- <RadioButton Name="rbF" FontSize ="16" Margin="0,0,30,0">Женский</RadioButton>
|
|
|
+ <RadioButton Name="rbM" FontSize ="16" Margin="0,0,30,0" IsChecked="{Binding !Page3VM.CurrentUser.CustomerGender}">Мужской</RadioButton>
|
|
|
+ <RadioButton Name="rbF" FontSize ="16" Margin="0,0,30,0" IsChecked="{Binding Page3VM.CurrentUser.CustomerGender}">Женский</RadioButton>
|
|
|
</StackPanel>
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,10,0,0">
|
|
|
<StackPanel >
|
|
|
<TextBlock>Рост,см</TextBlock>
|
|
|
- <TextBox Name="tbHeight" Margin="0,0,30,0"></TextBox>
|
|
|
+ <TextBox Text="{Binding Page3VM.CurrentUser.CustomerHeight}" Margin="0,0,30,0"></TextBox>
|
|
|
<TextBlock Name="ShowMessageHeight" Foreground="Red"></TextBlock>
|
|
|
</StackPanel>
|
|
|
<StackPanel >
|
|
|
<TextBlock >Вес, кг</TextBlock>
|
|
|
- <TextBox Name="tbWeight" Margin="0,0,30,0"></TextBox>
|
|
|
+ <TextBox Text="{Binding Page3VM.CurrentUser.CustomerWeight}" Margin="0,0,30,0"></TextBox>
|
|
|
<TextBlock Name="ShowMessageWeight" Foreground="Red"></TextBlock>
|
|
|
</StackPanel>
|
|
|
<StackPanel >
|
|
|
- <TextBlock Margin="0,0,30,0">Дата рождения</TextBlock>
|
|
|
- <TextBox Name="tbBirthday" Margin="0,0,30,0"></TextBox>
|
|
|
- <TextBlock Name="ShowMessageBirthday" Foreground="Red"></TextBlock>
|
|
|
+ <TextBlock >Дата рождения</TextBlock>
|
|
|
+ <DatePicker SelectedDate="{Binding Page3VM.Birthday}" Margin="0,0,30,0"/>
|
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
|
-
|
|
|
- <StackPanel>
|
|
|
- <TextBlock>Цель</TextBlock>
|
|
|
- <ComboBox Name="cbPurpose" FontSize ="16" SelectedIndex="0" >
|
|
|
- <ComboBoxItem IsEnabled="false">Выберите значение из списка</ComboBoxItem>
|
|
|
- <ComboBoxItem>Похудение</ComboBoxItem>
|
|
|
- <ComboBoxItem>Набор мышечной массы</ComboBoxItem>
|
|
|
- <ComboBoxItem>Поддержание здорового питания</ComboBoxItem>
|
|
|
- </ComboBox>
|
|
|
- </StackPanel>
|
|
|
</StackPanel>
|
|
|
</Border>
|
|
|
<Border Background="White"
|
|
@@ -277,11 +268,8 @@
|
|
|
|
|
|
</StackPanel>
|
|
|
</Border>
|
|
|
- <Button Foreground="White" Background="Green" HorizontalAlignment="Center" Margin="40" Content="Составить индивидуальный план питания" Command="{Binding $parent[Window].((vm:MainWindowViewModel)DataContext).LoadPage4}"/>
|
|
|
- </StackPanel>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ <Button Foreground="White" Background="Green" HorizontalAlignment="Center" Margin="40" Content="Составить индивидуальный план питания" Command="{Binding $parent[Window].((vm:MainWindowViewModel)DataContext).LoadPage2Create}"/>
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
|
+ </ScrollViewer>
|
|
|
</UserControl>
|