diff --git a/ENI2/EditControls/ShowIdDialog.xaml b/ENI2/EditControls/ShowIdDialog.xaml
index b958ab2f..fb6a890e 100644
--- a/ENI2/EditControls/ShowIdDialog.xaml
+++ b/ENI2/EditControls/ShowIdDialog.xaml
@@ -29,7 +29,7 @@
-
+
diff --git a/ENI2/EditControls/ShowIdDialog.xaml.cs b/ENI2/EditControls/ShowIdDialog.xaml.cs
index d449c7ba..7ba513e2 100644
--- a/ENI2/EditControls/ShowIdDialog.xaml.cs
+++ b/ENI2/EditControls/ShowIdDialog.xaml.cs
@@ -38,15 +38,10 @@ namespace ENI2.EditControls
this.DisplayId = id;
this.statusLabel.Content = Properties.Resources.textIdReceived;
this.statusLabel.Background = Brushes.LightGreen;
- this.clickToCopyLabel.Visibility = Visibility.Visible;
+ this.clickToCopyButton.Visibility = Visibility.Visible;
}));
}
- private void textBoxId_MouseDown(object sender, MouseButtonEventArgs e)
- {
- Clipboard.SetText(this.textBoxId.Text);
- }
-
private void Button_Click(object sender, RoutedEventArgs e)
{
this.Close();
@@ -67,5 +62,16 @@ namespace ENI2.EditControls
this.labelIMO.Content = this.Core.IMO.IsNullOrEmpty() ? this.Core.ENI : this.Core.IMO;
}
}
+
+ private void clickToCopyButton_Click(object sender, RoutedEventArgs e)
+ {
+ Clipboard.SetText(this.textBoxId.Text);
+ this.clickToCopyButton.Background = Brushes.LightGreen;
+ }
+
+ private void textBoxId_MouseDown(object sender, MouseButtonEventArgs e)
+ {
+ Clipboard.SetText(this.textBoxId.Text);
+ }
}
}