Пример #1
0
        private void DelEquip_Click(object sender, RoutedEventArgs e)
        {
            ActivityEquipment equip = (sender as Button).Tag as ActivityEquipment;

            if (equip == null)
            {
                return;
            }
            try
            {
                DataOperator.DeleteEquipments(equip.Key);
                LoadEquipmentsForOrg();
                MessageBox.Show("删除成功");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "删除失败");
            }
        }