Beispiel #1
0
        public EcasActionType(PwUuid uuidType, string strName, PwIcon pwIcon,
			EcasParameter[] vParams, EcasActionExecute f)
        {
            if((uuidType == null) || (uuidType.EqualsValue(PwUuid.Zero)))
                throw new ArgumentNullException("uuidType");
            if(strName == null) throw new ArgumentNullException("strName");
            // if(vParams == null) throw new ArgumentNullException("vParams");
            // if(f == null) throw new ArgumentNullException("f");

            m_type = uuidType;
            m_strName = strName;
            m_pwIcon = pwIcon;
            m_vParams = (vParams ?? EcasParameter.EmptyArray);
            m_fn = (f ?? EcasActionExecuteNull);
        }
Beispiel #2
0
        public EcasActionType(PwUuid uuidType, string strName, PwIcon pwIcon,
                              EcasParameter[] vParams, EcasActionExecute f)
        {
            if ((uuidType == null) || (uuidType.EqualsValue(PwUuid.Zero)))
            {
                throw new ArgumentNullException("uuidType");
            }
            if (strName == null)
            {
                throw new ArgumentNullException("strName");
            }
            // if(vParams == null) throw new ArgumentNullException("vParams");
            // if(f == null) throw new ArgumentNullException("f");

            m_type    = uuidType;
            m_strName = strName;
            m_pwIcon  = pwIcon;
            m_vParams = (vParams ?? EcasParameter.EmptyArray);
            m_fn      = (f ?? EcasActionExecuteNull);
        }