change doctor password field to passwordbox
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
<Label Content="Username" HorizontalContentAlignment="Center"/>
|
<Label Content="Username" HorizontalContentAlignment="Center"/>
|
||||||
<TextBox x:Name="Username" TextWrapping="Wrap" Width="120"/>
|
<TextBox x:Name="Username" TextWrapping="Wrap" Width="120"/>
|
||||||
<Label Content="Password" HorizontalContentAlignment="Center"/>
|
<Label Content="Password" HorizontalContentAlignment="Center"/>
|
||||||
<TextBox x:Name="Password" TextWrapping="Wrap" Width="120"/>
|
<PasswordBox x:Name="Password" Width="120"/>
|
||||||
<Button x:Name="Login" Content="Login" Margin="0,20,0,0" Click="Login_Click_1" />
|
<Button x:Name="Login" Content="Login" Margin="0,20,0,0" Click="Login_Click_1" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
|
|||||||
@@ -25,10 +25,8 @@ namespace DokterApp
|
|||||||
public MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private void Login_Click_1(object sender, RoutedEventArgs e)
|
private void Login_Click_1(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
@@ -36,16 +34,13 @@ namespace DokterApp
|
|||||||
handler = windowTabs.NewTab;
|
handler = windowTabs.NewTab;
|
||||||
|
|
||||||
this.Label.Content = "Waiting";
|
this.Label.Content = "Waiting";
|
||||||
this.client = new Client("localhost", 5555, this.Username.Text, this.Password.Text, handler);
|
this.client = new Client("localhost", 5555, this.Username.Text, this.Password.Password, handler);
|
||||||
while (!client.IsConnected())
|
while (!client.IsConnected())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
windowTabs.Show();
|
windowTabs.Show();
|
||||||
|
|
||||||
this.Close();
|
this.Close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user