2009-05-13 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.Data.Linq / src / VisualMetal / LoginWindow.xaml
1 <v:Dialog x:Class="VisualMetal.LoginWindow"\r
2     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"\r
3     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"\r
4     xmlns:v="clr-namespace:VisualMetal"\r
5     Title="Login To Database"\r
6     >\r
7         <StackPanel Margin="5">\r
8                 <Grid>\r
9                         <Grid.ColumnDefinitions>\r
10                                 <ColumnDefinition />\r
11                                 <ColumnDefinition />\r
12                         </Grid.ColumnDefinitions>\r
13                         <Grid.RowDefinitions>\r
14                                 <RowDefinition />\r
15                                 <RowDefinition />\r
16                                 <RowDefinition />\r
17                                 <RowDefinition />\r
18                                 <RowDefinition />\r
19                                 <RowDefinition />\r
20                                 <RowDefinition />\r
21                         </Grid.RowDefinitions>\r
22 \r
23                         <Label Grid.Row="0" HorizontalAlignment="Right">Server:</Label>\r
24                         <TextBox Grid.Row="0" Grid.Column="1" Width="200" Margin="5" Text="{Binding Path=Server, UpdateSourceTrigger=PropertyChanged}" />\r
25                         \r
26                         <Label Grid.Row="1" HorizontalAlignment="Right">User:</Label>\r
27                         <TextBox Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="5" Text="{Binding Path=User, UpdateSourceTrigger=PropertyChanged}" />\r
28 \r
29                         <Label Grid.Row="2" HorizontalAlignment="Right">Password:</Label>\r
30                         <PasswordBox Grid.Row="2" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="5" x:Name="PasswordInput" />\r
31 \r
32                         <Label Grid.Row="3" HorizontalAlignment="Right">Database:</Label>\r
33                         <TextBox Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="5" Text="{Binding Path=Database, UpdateSourceTrigger=PropertyChanged}" />\r
34 \r
35                         <Label Grid.Row="4" HorizontalAlignment="Right">Namespace:</Label>\r
36                         <TextBox Grid.Row="4" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="5" Text="{Binding Path=Namespace, UpdateSourceTrigger=PropertyChanged}" />\r
37 \r
38                         <Label Grid.Row="5" HorizontalAlignment="Right">Provider:</Label>\r
39                         <ComboBox Grid.Column="1" Grid.Row="5" Margin="5,2,5,0" Text="{Binding Path=Provider}">\r
40                                 <ComboBoxItem IsSelected="True">MySql</ComboBoxItem>\r
41                                 <ComboBoxItem>PostgreSQL</ComboBoxItem>\r
42                                 <ComboBoxItem>OracleODP</ComboBoxItem>\r
43                                 <ComboBoxItem>Oracle</ComboBoxItem>\r
44                                 <ComboBoxItem>Ingres</ComboBoxItem>\r
45                         </ComboBox>\r
46                         \r
47             <CheckBox Grid.Row="6" Grid.Column="0" HorizontalAlignment="Right" Margin="5" IsChecked="{Binding Path=SavePassword}" x:Name="SavePasswordCheckBox" />\r
48                         <Label Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left">Save Password (insecure)</Label>\r
49                         \r
50                         <!--<TextBlock x:Name="LoginErrorMessage" Grid.Row="2" Grid.ColumnSpan="2" Foreground="Red" FontWeight="Bold" HorizontalAlignment="Center" Visibility="Collapsed" />-->            \r
51                 </Grid>\r
52                 <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">\r
53                         <Button IsDefault="True" Click="Login_Click" Margin="0,8,0,0" Width="120" Content="Login" />\r
54                 </StackPanel>\r
55         </StackPanel>\r
56 </v:Dialog>\r