Пример #1
0
        private void tsbDelete_Click(object sender, EventArgs e)
        {
            try
            {
                List <BillsType> selectedModelList = this.GetSelectModelList();

                ModelService modelService = new ModelService();
                foreach (BillsType model in selectedModelList)
                {
                    modelService.DeleteBillsType(model, PermissionService.GetCurrentUser().Name);
                }
                this.RefreshListView();
            }
            catch (Exception ex)
            {
                ErrorHandler.OnError(ex);
            }
        }