Beispiel #1
0
        private void RemoveFirst_Click(object sender, RoutedEventArgs e)
        {
            Boat boat = portControl?.Boats.FirstOrDefault();

            portControl?.RemoveBoat(boat);
        }
Beispiel #2
0
        private void RemoveButton_Click(object sender, RoutedEventArgs e)
        {
            var boatData = (PortDataRow)PortData.SelectedItem;

            portControl.RemoveBoat(boatData.Boat);
        }