Exemplo n.º 1
0
        private void DeleteOperationsButton_OnClick(object sender, RoutedEventArgs e)
        {
            IList selectedOperations = OperationsDataGrid.SelectedItems;
            int   operationsSize     = selectedOperations.Count;

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

                _client.DeleteOperation(id);
            }

            OperationsTabItem_OnLoaded(sender, e);
        }