Inheritance: System.EventArgs
コード例 #1
0
ファイル: Vote.cs プロジェクト: TargetProcess/Tp.HelpDesk
        public void OnGridBindingStart(object sender, GridControllerArgs args)
        {
            var list = args.SourceCollection;

            if (list != null && list.Count > 0 && list[0] is Request)
            {
                int[] requestIds = new int[list.Count];

                for (int i = 0; i < list.Count; i++)
                {
                    requestIds[i] = ((IEntity)list[i]).ID.Value;
                }

                _votedByLoggedUserCache = Request.FilterAttachedToLoggedUser(requestIds);
            }
        }
コード例 #2
0
        public void OnGridBindingStart(object sender, GridControllerArgs args)
        {
            var list = args.SourceCollection;

            if (list != null && list.Count > 0 && list[0] is Request)
            {
                int[] requestIds = new int[list.Count];

                for (int i = 0; i < list.Count; i++)
                {
                    requestIds[i] = ((IEntity)list[i]).ID.Value;
                }

                _votedByLoggedUserCache = Request.FilterAttachedToLoggedUser(requestIds);
            }
        }