예제 #1
0
        //
        //
        #endregion//Constructors



        #region Public Methods
        // *****************************************************************
        // ****                     Public Methods                      ****
        // *****************************************************************
        //
        //
        //
        // *****************************************
        // ****             Get()               ****
        // *****************************************
        public override RequestEventArg <T> Get()
        {
            RequestEventArg <T> request = base.Get();

            request.Clear();
            return(request);
        }// Get()
예제 #2
0
        //
        //
        /// <summary>
        /// Overload copies objects from list.  List is not kept,
        /// but the objects in it are taken and added to Data[].
        /// </summary>
        /// <param name="code"></param>
        /// <param name="objList">List of objects to load into Data</param>
        /// <returns></returns>
        public virtual RequestEventArg <T> Get(T code, List <object> objList)
        {
            RequestEventArg <T> request = base.Get();

            request.Clear();
            request.RequestType = code;
            if (objList != null)
            {
                request.Data.AddRange(objList);
            }
            return(request);
        }
예제 #3
0
        }// Get()

        //
        /// <summary>
        /// This overload is the usual way that one or more arguments
        /// are passed all at once.
        /// </summary>
        /// <param name="code"></param>
        /// <param name="args">array of objects to be added to Data.</param>
        /// <returns></returns>
        public virtual RequestEventArg <T> Get(T code, params object[] args)
        {
            RequestEventArg <T> request = base.Get();

            request.Clear();
            request.RequestType = code;
            if (args != null)
            {
                foreach (object arg in args)
                {
                    request.Data.Add(arg);
                }
            }
            return(request);
        }