78 lines
2.7 KiB
Plaintext
78 lines
2.7 KiB
Plaintext
|
<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="450"
|
||
|
x:Class="Agents.AgentEidtor"
|
||
|
Title="Изменить агента"
|
||
|
xmlns:vm="using:Agents.Models">
|
||
|
|
||
|
<DockPanel Background="Blue">
|
||
|
<ScrollViewer>
|
||
|
|
||
|
<StackPanel Spacing="15">
|
||
|
|
||
|
<StackPanel HorizontalAlignment="Center">
|
||
|
<TextBlock Text="Выберите клиента для изменения"/>
|
||
|
<ComboBox Name="ListAgents" HorizontalAlignment="Center" Width="300" SelectionChanged="ComboBox_SelectionChanged">
|
||
|
<ComboBox.ItemTemplate>
|
||
|
<DataTemplate x:DataType="vm:Agent">
|
||
|
<TextBlock Text="{Binding Title}"/>
|
||
|
</DataTemplate>
|
||
|
</ComboBox.ItemTemplate>
|
||
|
</ComboBox>
|
||
|
</StackPanel>
|
||
|
|
||
|
<StackPanel Spacing="15" HorizontalAlignment="Center" Orientation="Horizontal">
|
||
|
|
||
|
<StackPanel Orientation="Vertical">
|
||
|
<TextBlock Text="Введите новый приоритет"/>
|
||
|
<NumericUpDown Value="" Width="150" Minimum="0" Name="TextNewPriority"/>
|
||
|
</StackPanel>
|
||
|
|
||
|
<StackPanel Orientation="Vertical">
|
||
|
<TextBlock Text="Введите новый ИНН"/>
|
||
|
<TextBox Width="300" x:Name="TextNewInn" Text=""/>
|
||
|
</StackPanel>
|
||
|
|
||
|
<StackPanel Orientation="Vertical">
|
||
|
<TextBlock Text="Введите новый КПП"/>
|
||
|
<TextBox Width="300" x:Name="TextNewKPP" Text=""/>
|
||
|
</StackPanel>
|
||
|
|
||
|
</StackPanel>
|
||
|
|
||
|
<StackPanel Spacing="15" HorizontalAlignment="Center" Orientation="Horizontal">
|
||
|
|
||
|
<StackPanel Orientation="Vertical">
|
||
|
<TextBlock Text="Введите новый адрес"/>
|
||
|
<TextBox Width="300" Height="90" x:Name="TextNewAddress" TextWrapping="Wrap" Text=""/>
|
||
|
</StackPanel>
|
||
|
|
||
|
<StackPanel Orientation="Vertical">
|
||
|
<TextBlock Text="Введите новое имя директора"/>
|
||
|
<TextBox Width="300" x:Name="TextNewDirectorname" Text=""/>
|
||
|
</StackPanel>
|
||
|
|
||
|
<StackPanel Orientation="Vertical">
|
||
|
<TextBlock Text="Введите новую почту"/>
|
||
|
<TextBox Width="300" x:Name="TextNewEmail" Text=""/>
|
||
|
</StackPanel>
|
||
|
|
||
|
</StackPanel>
|
||
|
|
||
|
<StackPanel>
|
||
|
<Button Content="Изменить данные" Click="ButtonUpdate" HorizontalAlignment="Center" Background="Green"/>
|
||
|
<Button Content="Назад" Click="Exit" HorizontalAlignment="Center" Background="Green"/>
|
||
|
</StackPanel>
|
||
|
|
||
|
|
||
|
<TextBlock Name="Status" Text="" HorizontalAlignment="Center"/>
|
||
|
|
||
|
</StackPanel>
|
||
|
|
||
|
</ScrollViewer>
|
||
|
</DockPanel>
|
||
|
|
||
|
</Window>
|