123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <Window x:Class="WpfApp1.Windows.AddEditAgent"
- 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:local="clr-namespace:WpfApp1.Windows"
- mc:Ignorable="d"
- Title="{Binding Name}" MinHeight="650" Height="650" MinWidth="450" Width="450">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="auto"/>
- </Grid.ColumnDefinitions>
- <Image Width="200" Height="200" Source="{Binding CurrentAgent.ImagePres}"/>
- <StackPanel Grid.Column="1" Margin="5">
- <Label Content="Наименование агента:"/>
- <TextBox VerticalAlignment="Center" HorizontalAlignment="Left" Width="200" Text="{Binding CurrentAgent.Title}"/>
- <Label Content="Тип агента:"/>
- <ComboBox VerticalAlignment="Center" HorizontalAlignment="Left" Width="200"
- ItemsSource="{Binding AgentTypeList}"
- SelectedItem="{Binding CurrentAgent.AgentType}">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <Label Content="{Binding Title}"/>
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
- <Label Content="Приоритет:"/>
- <TextBox VerticalAlignment="Center" HorizontalAlignment="Left" Width="200"
- Text="{Binding CurrentAgent.Priority}"/>
- <Label Content="Адрес:" />
- <TextBox VerticalAlignment="Center" HorizontalAlignment="Left" Width="200"
- Text="{Binding CurrentAgent.Address}"/>
- <Label Content="ИНН:"/>
- <TextBox VerticalAlignment="Center" HorizontalAlignment="Left" Width="200"
- Text="{Binding CurrentAgent.INN}"/>
- <Label Content="КПП:"/>
- <TextBox VerticalAlignment="Center" HorizontalAlignment="Left" Width="200"
- Text="{Binding CurrentAgent.KPP}"/>
- <Label Content="Имя директора:"/>
- <TextBox VerticalAlignment="Center" HorizontalAlignment="Left" Width="200"
- Text="{Binding CurrentAgent.DirectorName}"/>
- <Label Content="Телефон:"/>
- <TextBox VerticalAlignment="Center" HorizontalAlignment="Left" Width="200"
- Text="{Binding CurrentAgent.Phone}"/>
- <Label Content="E-mail:"/>
- <TextBox VerticalAlignment="Center" HorizontalAlignment="Left" Width="200"
- Text="{Binding CurrentAgent.Email}"/>
- <Button x:Name="AddImage"
- Content="Выбрать картинку"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Click="AddImage_Click"
- Margin="0,10"
- Background="#46B29D"
- Width="150"/>
- <Button x:Name="AddButton"
- Content="Сохранить"
- Background="#46B29D"
- Click="AddButton_Click"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Width="150"
- />
- <Button
- x:Name="DeleteButton"
- Content="Удалить"
- Background="#46B29D"
- Click="DeleteButton_Click"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Width="150"
- Margin="0,10"/>
-
- </StackPanel>
- </Grid>
- </Window>
|