public void Delete(int id)
        {
            var model = ValueService.Delete(id);

            MainViewModel.ValueOrEventChangedUpdateOpenFiles();
            if (View == null)
            {
                return;
            }
            RenderDocument();
            View.UpdateView(model);
        }