Ejemplo n.º 1
0
        private void DeleteChassisButton_OnClick(object sender, RoutedEventArgs e)
        {
            IList selectedChassis = ChassisDataGrid.SelectedItems;
            int   chassisSize     = selectedChassis.Count;

            for (var i = 0; i < chassisSize; i++)
            {
                DataRowView row    = (DataRowView)ChassisDataGrid.SelectedItems[i];
                string      textId = row["Id"].ToString();
                int         id     = Convert.ToInt32(textId);

                _client.DeleteChassis(id);
            }

            ChassisTabItem_OnLoaded(sender, e);
        }