| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- <Window x:Class="Muchinfo.MTPClient.Bank.Views.TerminationSignView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
- xmlns:password="clr-namespace:Muchinfo.WPF.Controls.Password;assembly=Client.WPF.Controls"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- x:Name="openOrderWindow"
- Title="{x:Static resource:Client_Resource.Bank_Termination_Title}"
- Width="400"
- Height="240"
- ShowInTaskbar="False"
- Style="{DynamicResource DialogWindowStyle}">
- <Window.Resources>
- <Style x:Key="TextBoxStyle" TargetType="TextBox">
- <Setter Property="Margin" Value="5,1,0,1" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="Height" Value="23" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Border x:Name="border"
- Width="Auto"
- BorderBrush="DarkGray"
- BorderThickness="1">
- <Grid x:Name="grid" Background="#FFFFFF">
- <ScrollViewer x:Name="PART_ContentHost"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- VerticalContentAlignment="Center" />
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
- <converters:BoolOpposedVisibility x:Key="OpposedVisibility" />
- </Window.Resources>
- <xctk:BusyIndicator BusyContent="{Binding BusyContent}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="120" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="20" />
- <RowDefinition Height="50" />
- <RowDefinition Height="50" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock Grid.Row="1"
- Margin="5,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Content_DrawIdentifyCode}"
- Visibility="{Binding IsBandPassWordVisible,
- Converter={StaticResource ToVisibilityConverter}}" />
- <PasswordBox x:Name="Password"
- Grid.Row="1"
- Grid.Column="1"
- Width="200"
- MinHeight="25"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Style="{DynamicResource LoginPasswordBoxStyle}"
- TabIndex="1"
- Visibility="{Binding IsBandPassWordVisible,
- Converter={StaticResource ToVisibilityConverter}}"
- password:PasswordHelper.Attach="True"
- password:PasswordHelper.Password="{Binding Password,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- <TextBlock Grid.Row="2"
- Grid.Column="0"
- Margin="5,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Money_IdentifyCode}"
- Visibility="{Binding IsMobileCodeVisible,
- Converter={StaticResource ToVisibilityConverter}}" />
- <StackPanel Grid.Row="2"
- Grid.Column="1"
- Margin="5,1,0,1"
- Orientation="Horizontal"
- Visibility="{Binding IsMobileCodeVisible,
- Converter={StaticResource ToVisibilityConverter}}">
- <TextBox Width="90"
- Margin="0"
- VerticalAlignment="Center"
- Style="{DynamicResource TextBoxStyle}"
- Text="{Binding CurrentSigningBank.IdentifyCode}" />
- <TextBlock Margin="5,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{Binding CurrentTick}"
- Visibility="{Binding IsEnalbe,
- Converter={StaticResource OpposedVisibility}}" />
- <Button Margin="5,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Command="{Binding IdentifyCodeCommand}"
- Content="{x:Static resource:Client_Resource.Content_GetIdentifyCode}"
- IsEnabled="{Binding IsEnalbe}"
- Padding="3,2"
- Style="{DynamicResource CommonButtonStyle}"
- Visibility="{Binding IsEnalbe,
- Converter={StaticResource ToVisibilityConverter}}" />
- </StackPanel>
- <StackPanel Grid.Row="4"
- Grid.RowSpan="2"
- Grid.ColumnSpan="2"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <Button Width="82"
- Height="26"
- Command="{Binding OkCommand}"
- CommandParameter="{Binding ElementName=openOrderWindow}"
- Content="{x:Static resource:Client_Resource.Button_Confirm}"
- IsDefault="True"
- IsEnabled="{Binding OKButtonEnabled}"
- Style="{DynamicResource CommonButtonStyle}"
- TabIndex="5" />
- <Button Width="82"
- Height="26"
- Margin="60,0,0,0"
- Click="ButtonBase_OnClick"
- Content="{x:Static resource:Client_Resource.Button_Cancel}"
- Style="{DynamicResource CommonButtonStyle}"
- TabIndex="6" />
- </StackPanel>
- </Grid>
- </xctk:BusyIndicator>
- </Window>
|