// Простановка штампа о ручной проверке
 private void SetChecked_Execute(object sender, SimpleActionExecuteEventArgs e)
 {
     if (View != null && View.CurrentObject != null && View.CurrentObject as crmCLegalPersonUnit != null)
     {
         crmCLegalPersonUnit current = View.CurrentObject as crmCLegalPersonUnit;
         current.ManualCheckStatus = ManualCheckStateEnum.IS_CHECKED;
         EnableButton();
     }
 }
        private void EnableButton()
        {
            if (View == null || View.CurrentObject == null || View.CurrentObject as crmCLegalPersonUnit == null)
            {
                return;
            }
            crmCLegalPersonUnit current = View.CurrentObject as crmCLegalPersonUnit;

            if (current.ManualCheckStatus == ManualCheckStateEnum.IS_CHECKED)
            {
                this.SetChecked.Enabled[DO_ENABLED] = false;
            }
            else       //if (current.ManualCheckStatus == ManualCheckStateEnum.IS_CHECKED) {
            {
                this.SetChecked.Enabled[DO_ENABLED] = true;
            }
        }