public void RemoveOption(List <dtoCommittee> committees, Boolean useDssMethod, long idOption)
        {
            long  pIdOption    = 0;
            long  pIdCommittee = 0;
            long  pIdCriterion = 0;
            long  idCall       = View.IdCall;
            Int32 idCommunity  = View.IdCommunity;

            try
            {
                Service.SaveCommittees(idCall, committees, (useDssMethod ? View.GetCallDssSettings() : null));
                if (Service.VirtualDeleteCriterionOption(idOption, true, ref pIdCommittee, ref pIdCriterion, ref pIdOption))
                {
                    View.SendUserAction(idCommunity, View.IdCallModule, idCall, ModuleCallForPaper.ActionType.VirtualDeleteCriterionOption);
                    if (pIdOption != 0)
                    {
                        View.ReloadEditor(RootObject.OptionRemovedFromCriterion(pIdOption, idCall, idCommunity, View.PreloadView));
                    }
                    else if (pIdCriterion != 0)
                    {
                        View.ReloadEditor(RootObject.CriterionRemovedFromCommittee(pIdCriterion, idCall, idCommunity, View.PreloadView));
                    }
                    else
                    {
                        View.ReloadEditor(RootObject.CommitteeRemovedFromCall(pIdCommittee, idCall, idCommunity, View.PreloadView));
                    }
                }
                else
                {
                    View.DisplayError(EvaluationEditorErrors.RemovingOption);
                }
            }
            catch (EvaluationStarted exSubmission)
            {
                View.DisplayError(EvaluationEditorErrors.RemovingOption);
            }
            catch (Exception ex)
            {
                View.DisplayError(EvaluationEditorErrors.RemovingOption);
            }
        }
        public void RemoveCriterion(List <dtoCommittee> committees, Boolean useDssMethod, long idCriterion)
        {
            long  pIdCommittee = 0;
            long  pIdCriterion = 0;
            long  idCall       = View.IdCall;
            Int32 idCommunity  = View.IdCommunity;

            try
            {
                lm.Comol.Core.Dss.Domain.Templates.dtoItemMethodSettings settings = (useDssMethod ? View.GetCallDssSettings() : null);
                Service.SaveCommittees(idCall, committees, settings);
                if (Service.VirtualDeleteCriterion(idCriterion, true, ref pIdCommittee, ref pIdCriterion))
                {
                    if (useDssMethod)
                    {
                        Service.UpdateCommitteeManualSettings(committees, idCriterion);
                    }
                    View.SendUserAction(idCommunity, View.IdCallModule, idCall, ModuleCallForPaper.ActionType.VirtualDeleteCriterion);
                    if (pIdCriterion != 0)
                    {
                        View.ReloadEditor(RootObject.CriterionRemovedFromCommittee(pIdCriterion, idCall, idCommunity, View.PreloadView));
                    }
                    else
                    {
                        View.ReloadEditor(RootObject.CommitteeRemovedFromCall(pIdCommittee, idCall, idCommunity, View.PreloadView));
                    }
                }
                else
                {
                    View.DisplayError(EvaluationEditorErrors.RemovingCriterion);
                }
            }
            catch (EvaluationStarted exSubmission)
            {
                View.DisplayError(EvaluationEditorErrors.RemovingCriterion);
            }
            catch (Exception ex)
            {
                View.DisplayError(EvaluationEditorErrors.RemovingCriterion);
            }
        }