Changeset 2478


Ignore:
Timestamp:
Jan 25, 2011, 7:06:40 PM (11 years ago)
Author:
kopal
Message:

changed text inputs to fixed maximum lengths the user may enter

Location:
trunk/CrypPlugins/P2PEditor/GUI/Controls
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/P2PEditor/GUI/Controls/ActivateEmailView.xaml

    r2477 r2478  
    2828            <Label Content="_Activation Code:" Target="{Binding ElementName=ActivationCode}" Grid.Row="2" Grid.Column="0" />
    2929            <Label Content="_Password:" Target="{Binding ElementName=PasswordField}" Grid.Row="3" Grid.Column="0" />           
    30             <TextBox Text="{Binding Name}" x:Name="ActivationCodeField" Grid.Row="2" Grid.Column="1" Height="24"/>
    31             <PasswordBox x:Name="PasswordField" Grid.Row="3" Grid.Column="1" Height="24" />
     30            <TextBox Text="{Binding Name}" x:Name="ActivationCodeField" Grid.Row="2" Grid.Column="1" Height="24" MaxLength="40"/>
     31            <PasswordBox x:Name="PasswordField" Grid.Row="3" Grid.Column="1" Height="24" MaxLength="40"/>
    3232            <Button Name="BackButton" Content="_Back" Height="24" HorizontalAlignment="Right" Margin="0,20,6,36" Width="54" Grid.Row="4" Grid.Column="1" Click="BackButton_Click" />
    3333            <Button Name="ActivateButton" Content="_Activate" Height="24" HorizontalAlignment="Left" Margin="438,20,0,36" Width="56" Grid.Column="1" Grid.Row="4" Click="ActivateButton_Click"/>
  • trunk/CrypPlugins/P2PEditor/GUI/Controls/ConnectView.xaml

    r2379 r2478  
    1919                <Label Name="MessageLabel" Foreground="Red" Content="" Grid.Row="1" Grid.ColumnSpan="2" />
    2020                <Label Width="200">Username:</Label>
    21                 <TextBox Width="200" Name="Username" TextChanged="Username_TextChanged" IsEnabled="{Binding IsP2PConnecting, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Converter={StaticResource InverseBooleanConverter}}" />
     21                <TextBox Width="200" Name="Username" TextChanged="Username_TextChanged" IsEnabled="{Binding IsP2PConnecting, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Converter={StaticResource InverseBooleanConverter}}" MaxLength="40"/>
    2222                <TextBlock Width="200" FontSize="12" MouseDown="GetACertificateLabel_Click" Cursor="Hand" HorizontalAlignment="Center" IsEnabled="{Binding IsP2PConnecting, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Converter={StaticResource InverseBooleanConverter}}" Foreground="{Binding IsP2PConnecting, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Converter={StaticResource ForegroundColorConverter}}">
    2323                    <Underline>Create a new account</Underline>
    2424                </TextBlock>
    2525                <Label Width="200">Password:</Label>
    26                 <PasswordBox Width="200" Name="Password" PasswordChanged="Password_PasswordChanged" IsEnabled="{Binding IsP2PConnecting, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Converter={StaticResource InverseBooleanConverter}}" />
     26                <PasswordBox Width="200" Name="Password" PasswordChanged="Password_PasswordChanged" IsEnabled="{Binding IsP2PConnecting, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Converter={StaticResource InverseBooleanConverter}}" MaxLength="40"/>
    2727                <TextBlock Width="200" FontSize="12" MouseDown="ForgotPasswordLabel_Click" Cursor="Hand" HorizontalAlignment="Center" IsEnabled="{Binding IsP2PConnecting, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Converter={StaticResource InverseBooleanConverter}}" Foreground="{Binding IsP2PConnecting, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Converter={StaticResource ForegroundColorConverter}}">
    2828                    <Underline>Forgot password</Underline>
  • trunk/CrypPlugins/P2PEditor/GUI/Controls/ForgotPasswordView.xaml

    r2463 r2478  
    2626            <Label Name="MessageLabel" Foreground="Red" Grid.Row="1" Grid.ColumnSpan="2" />
    2727            <Label Content="_Username:" Target="{Binding ElementName=UsernameField}" Grid.Row="2" Grid.Column="0" />
    28             <TextBox Text="{Binding Name}" x:Name="UsernameField" Grid.Row="2" Grid.Column="1" Height="24" />
     28            <TextBox Text="{Binding Name}" x:Name="UsernameField" Grid.Row="2" Grid.Column="1" Height="24" MaxLength="40"/>
    2929            <Button Name="ResetButton" Content="_Reset" HorizontalAlignment="Left" Width="54" Grid.Row="3" Grid.Column="1" Height="24" Click="Request_Click" Margin="378,20,0,36" />
    3030            <Button Name="BackButton" Content="_Back" Height="24" HorizontalAlignment="Right" Margin="0,20,6,36" Width="54" Grid.Row="3" Grid.Column="1" Click="BackButton_Click" />
  • trunk/CrypPlugins/P2PEditor/GUI/Controls/GetNewCertificateView.xaml

    r2408 r2478  
    3737            <Label Content="_Password:" Target="{Binding ElementName=PasswordField}" Grid.Row="4" Grid.Column="0" />
    3838            <Label Content="_Confirm:" Target="{Binding ElementName=ConfirmField}" Grid.Row="5" Grid.Column="0" />
    39             <TextBox Text="{Binding Name}" x:Name="UsernameField" Grid.Row="2" Grid.Column="1" Height="24" />
    40             <TextBox Text="{Binding Name}" x:Name="EmailField" Grid.Row="3" Grid.Column="1" Height="24" />
    41             <PasswordBox x:Name="PasswordField" Grid.Row="4" Grid.Column="1" Height="24" />
    42             <PasswordBox x:Name="ConfirmField" Grid.Row="5" Grid.Column="1" Height="24" />
     39            <TextBox Text="{Binding Name}" x:Name="UsernameField" Grid.Row="2" Grid.Column="1" Height="24" MaxLength="40"/>
     40            <TextBox Text="{Binding Name}" x:Name="EmailField" Grid.Row="3" Grid.Column="1" Height="24" MaxLength="60"/>
     41            <PasswordBox x:Name="PasswordField" Grid.Row="4" Grid.Column="1" Height="24" MaxLength="40" />
     42            <PasswordBox x:Name="ConfirmField" Grid.Row="5" Grid.Column="1" Height="24" MaxLength="40"/>
    4343            <Button Name="RequestButton" Content="_Request" HorizontalAlignment="Left" Width="54" Grid.Row="6" Grid.Column="1" Height="24" Click="Request_Click" Margin="378,20,0,36" />
    4444            <Button Name="BackButton" Content="_Back" Height="24" HorizontalAlignment="Right" Margin="0,20,6,36" Width="54" Grid.Row="6" Grid.Column="1" Click="BackButton_Click" />
  • trunk/CrypPlugins/P2PEditor/GUI/Controls/VerifyPasswordResetView.xaml

    r2463 r2478  
    3131            <Label Content="_Confirm:" Target="{Binding ElementName=Confirmield}" Grid.Row="4" Grid.Column="0" />
    3232            <TextBox Text="{Binding ActivationCode}" x:Name="ActivationCode" Grid.Row="2" Grid.Column="1" Height="24" />
    33             <PasswordBox x:Name="PasswordField" Grid.Row="3" Grid.Column="1" Height="24" />
    34             <PasswordBox x:Name="ConfirmField" Grid.Row="4" Grid.Column="1" Height="24" />
     33            <PasswordBox x:Name="PasswordField" Grid.Row="3" Grid.Column="1" Height="24" MaxLength="40"/>
     34            <PasswordBox x:Name="ConfirmField" Grid.Row="4" Grid.Column="1" Height="24" MaxLength="40"/>
    3535            <Button Name="BackButton" Content="_Back" Height="24" HorizontalAlignment="Right" Margin="0,20,6,36" Width="54" Grid.Row="5" Grid.Column="1" Click="BackButton_Click" />
    3636            <Button Name="VerifyButton" Content="_Verify" Height="24" HorizontalAlignment="Left" Margin="438,20,0,36" Width="56" Grid.Column="1" Grid.Row="5" Click="VerifyButton_Click"/>
Note: See TracChangeset for help on using the changeset viewer.