private void lstShips_MouseDoubleClick(object sender, MouseButtonEventArgs e) { SelectedShip = lstShips.SelectedIndex; DialogResult = true; this.Close(); }