APG.CodeHelper.Actions.UIAction.CanDoThis C# (CSharp) Метод

CanDoThis() публичный Метод

��������� ����������� ���������� ������� ��������
public CanDoThis ( object sender, UIObjectAction index ) : bool
sender object ���������� ������, ��������� ���������
index UIObjectAction ��� ������� ��������
Результат bool
        public bool CanDoThis(object sender, UIObjectAction index)
        {
            switch (index)
            {
                case UIObjectAction.taAdd: return CanAdd(sender);
                case UIObjectAction.taDelete: return CanDelete(sender);
                case UIObjectAction.taUpdate: return CanUpdate(sender);
                case UIObjectAction.taCopy: return CanCopy(sender);
                case UIObjectAction.taPaste: return CanPaste(sender);
                case UIObjectAction.taCut: return CanCut(sender);
                default: return false;
            }
        }