/// <summary>
        /// Initializes a new instance of the <see cref="PngColorTypeInformation"/> class with 
        /// the scanline factory, the function to create the color reader and the supported bit depths.
        /// </summary>
        /// <param name="scanlineFactor">The scanline factor.</param>
        /// <param name="supportedBitDepths">The supported bit depths.</param>
        /// <param name="scanlineReaderFactory">The factory to create the color reader.</param>
        //public PngColorTypeInformation(int scanlineFactor, int[] supportedBitDepths, Func<byte[], byte[], IColorReader> scanlineReaderFactory)
        public PngColorTypeInformation(int scanlineFactor, int[] supportedBitDepths, MyFunc<byte[], byte[], IColorReader> scanlineReaderFactory)
        {
            ChannelsPerColor = scanlineFactor;
            ScanlineReaderFactory = scanlineReaderFactory;

            SupportedBitDepths = supportedBitDepths;
        }
Пример #2
0
 public static void AoeQuery(GameObject srcObj, GameObject targetObj, int aoeType, float range, float angleOrLength, SkillInstance instance, int senderId, int targetType, Vector3 relativeCenter, bool relativeToTarget, MyFunc<float, int, bool> callback)
 {
     float radian;
     Vector3 center;
     if (null != targetObj && relativeToTarget) {
         Vector3 srcPos = srcObj.transform.position;
         Vector3 targetPos = targetObj.transform.position;
         radian = Geometry.GetYRadian(new ScriptRuntime.Vector2(srcPos.x, srcPos.z), new ScriptRuntime.Vector2(targetPos.x, targetPos.z));
         ScriptRuntime.Vector2 newOffset = Geometry.GetRotate(new ScriptRuntime.Vector2(relativeCenter.x, relativeCenter.z), radian);
         center = targetPos + new Vector3(newOffset.X, relativeCenter.y, newOffset.Y);
     } else {
         radian = Geometry.DegreeToRadian(srcObj.transform.localRotation.eulerAngles.y);
         center = srcObj.transform.TransformPoint(relativeCenter);
     }
     if (aoeType == (int)SkillAoeType.Circle || aoeType == (int)SkillAoeType.Sector) {
         angleOrLength = Geometry.DegreeToRadian(angleOrLength);
         ClientModule.Instance.KdTree.Query(center.x, center.y, center.z, range, (float distSqr, KdTreeObject kdTreeObj) => {
             int targetId = kdTreeObj.Object.GetId();
             if (targetType == (int)SkillTargetType.Enemy && CharacterRelation.RELATION_ENEMY == EntityController.Instance.GetRelation(senderId, targetId) ||
                 targetType == (int)SkillTargetType.Friend && CharacterRelation.RELATION_FRIEND == EntityController.Instance.GetRelation(senderId, targetId)) {
                 bool isMatch = false;
                 if (aoeType == (int)SkillAoeType.Circle) {
                     isMatch = true;
                 } else {
                     ScriptRuntime.Vector2 u = Geometry.GetRotate(new ScriptRuntime.Vector2(0, 1), radian);
                     isMatch = Geometry.IsSectorDiskIntersect(new ScriptRuntime.Vector2(center.x, center.z), u, angleOrLength / 2, range, new ScriptRuntime.Vector2(kdTreeObj.Position.X, kdTreeObj.Position.Z), kdTreeObj.Radius);
                 }
                 if (isMatch) {
                     if (!callback(distSqr, kdTreeObj.Object.GetId())) {
                         return false;
                     }
                 }
             }
             return true;
         });
     } else {
         ScriptRuntime.Vector2 angleu = Geometry.GetRotate(new ScriptRuntime.Vector2(0, angleOrLength), radian);
         ScriptRuntime.Vector2 c = new ScriptRuntime.Vector2(center.x, center.z) + angleu / 2;
         GameFramework.ClientModule.Instance.KdTree.Query(c.X, 0, c.Y, range + angleOrLength / 2, (float distSqr, GameFramework.KdTreeObject kdTreeObj) => {
             int targetId = kdTreeObj.Object.GetId();
             if (targetType == (int)SkillTargetType.Enemy && CharacterRelation.RELATION_ENEMY == EntityController.Instance.GetRelation(senderId, targetId) ||
                 targetType == (int)SkillTargetType.Friend && CharacterRelation.RELATION_FRIEND == EntityController.Instance.GetRelation(senderId, targetId)) {
                 bool isMatch = false;
                 if (aoeType == (int)SkillAoeType.Capsule) {
                     isMatch = Geometry.IsCapsuleDiskIntersect(new ScriptRuntime.Vector2(center.x, center.z), angleu, range, new ScriptRuntime.Vector2(kdTreeObj.Position.X, kdTreeObj.Position.Z), kdTreeObj.Radius);
                 } else {
                     ScriptRuntime.Vector2 half = new ScriptRuntime.Vector2(range / 2, angleOrLength / 2);
                     isMatch = Geometry.IsObbDiskIntersect(c, half, radian, new ScriptRuntime.Vector2(kdTreeObj.Position.X, kdTreeObj.Position.Z), kdTreeObj.Radius);
                 }
                 if (isMatch) {
                     if (!callback(distSqr, kdTreeObj.Object.GetId())) {
                         return false;
                     }
                 }
             }
             return true;
         });
     }
 }
        public static bool SpinUntil(MyFunc<bool> condition, int millisecondsTimeout)
        {
            ServerSpinWait sw = new ServerSpinWait ();
            ServerWatch watch = ServerWatch.StartNew ();

            while (!condition ()) {
                if (watch.ElapsedMilliseconds > millisecondsTimeout)
                    return false;
                sw.SpinOnce ();
            }

            return true;
        }
Пример #4
0
 public static void AoeQuery(GfxSkillSenderInfo senderObj, SkillInstance instance, int senderId, int targetType, Vector3 relativeCenter, bool relativeToTarget, MyFunc<float, int, bool> callback)
 {
     GameObject srcObj = senderObj.GfxObj;
     if (null != senderObj.TrackEffectObj)
         srcObj = senderObj.TrackEffectObj;
     GameObject targetObj = senderObj.TargetGfxObj;
     int aoeType = 0;
     float range = 0;
     float angleOrLength = 0;
     TableConfig.Skill cfg = senderObj.ConfigData;
     if (null != cfg) {
         aoeType = cfg.aoeType;
         range = cfg.aoeSize;
         angleOrLength = cfg.aoeAngleOrLength;
     }
     AoeQuery(srcObj, targetObj, aoeType, range, angleOrLength, instance, senderId, targetType, relativeCenter, relativeToTarget, callback);
 }
Пример #5
0
 internal void QueueAction <T1, T2, T3, R>(MyFunc <T1, T2, T3, R> action, T1 t1, T2 t2, T3 t3)
 {
     QueueActionWithDelegation(action, t1, t2, t3);
 }
Пример #6
0
 internal void QueueAction <R>(MyFunc <R> action)
 {
     QueueActionWithDelegation(action);
 }
Пример #7
0
        private string GetOrderList(string start_date, string end_date, string t1, string t2, string isjs, string tztype, string ballid, string gdid, string zdlid, string dlsid, string userid, string username, string orderid, string matchname, string tzmoney, string rr, string iscancel, string iswin)
        {
            int curPage;
            int start;
            int pagesize = 100;

            try
            {
                curPage = int.Parse(base.Request.QueryString["page"].ToString());
            }
            catch
            {
                curPage = 1;
            }
            if (curPage < 1)
            {
                curPage = 1;
            }
            string text  = "SELECT  orderid,userid,username,tzmoney,tztype,curpl,win,lose,truewin,hsuser_w,hsuser_l,content,updatetime,iscancel,balltime,isdanger,tzip,ds FROM Ball_order ";
            string text2 = "WHERE updatetime BETWEEN '" + start_date + " " + t1 + "' AND '" + end_date + " " + t2 + "' ";
            string text3 = "";

            if (orderid != "")
            {
                text2 = text2 + " AND orderid=" + orderid;
            }
            if (tztype != "")
            {
                text2 = text2 + " AND tztype=" + tztype;
            }
            if (ballid != "")
            {
                text2 = text2 + " AND ballid in (" + ballid + ")";
            }
            if (gdid != "")
            {
                text2 = text2 + " AND gdid=" + gdid;
            }
            if (zdlid != "")
            {
                text2 = text2 + " AND zdlid=" + zdlid;
            }
            if (dlsid != "")
            {
                text2 = text2 + " AND dlsid=" + dlsid;
            }
            if ((userid != "") && (username == ""))
            {
                text2 = text2 + " AND userid='" + userid + "'";
            }
            if ((userid == "") && (username != ""))
            {
                text2 = text2 + " AND username='******'";
            }
            if ((isjs != "") && (iscancel == ""))
            {
                text2 = text2 + " AND isjs=" + isjs;
            }
            if ((rr != "") && (rr == "0"))
            {
                text2 = text2 + " AND win-lose=0";
            }
            if (tzmoney != "")
            {
                text2 = text2 + " AND tzmoney>=" + tzmoney;
            }
            if ((iscancel != "") && (iscancel != "0"))
            {
                text2 = text2 + " AND iscancel=" + iscancel;
            }
            if (iswin != "")
            {
                if (iswin == "w")
                {
                    text2 = text2 + " AND win>0";
                }
                if (iswin == "s")
                {
                    text2 = text2 + " AND lose > 0";
                }
            }
            DataBase base2       = new DataBase(MyFunc.GetConnStr(2));
            int      totalRecord = int.Parse(base2.ExecuteScalar("SELECT COUNT(1) FROM Ball_order " + text2).ToString());

            if (totalRecord == 0)
            {
                start = 0;
            }
            else
            {
                start = (curPage - 1) * pagesize;
            }
            DataSet set   = base2.ExecuteDataSet(text + text2 + " ORDER BY orderid DESC", start, pagesize, "ball_order");
            double  num5  = 0;
            double  num6  = 0;
            int     num7  = 0;
            string  text4 = "";

            for (int i = 0; i < set.Tables[0].Rows.Count; i++)
            {
                string text9  = text3;
                string text10 = text9 + "<tr bgcolor=#FFFFFF><td align=\"center\">" + set.Tables[0].Rows[i]["orderid"].ToString().Trim() + "</td><td align=\"center\">" + DateTime.Parse(set.Tables[0].Rows[i]["updatetime"].ToString().Trim()).ToString("yyyy-MM-dd HH:mm:ss").ToUpper().Replace(" ", "<br>");
                text3 = text10 + "</td><td align=\"center\">" + set.Tables[0].Rows[i]["username"].ToString().Trim() + "</td><td align=\"center\">" + MyFunc.GettzTypeName(set.Tables[0].Rows[i]["tztype"].ToString().Trim()) + "</td><td align=\"right\">" + set.Tables[0].Rows[i]["content"].ToString().Trim() + "</td><td align=\"right\" valign=\"top\"> </td><td align=\"right\" valign=\"top\">" + MyFunc.NumBerFormat(set.Tables[0].Rows[i]["tzmoney"].ToString().Trim()) + "</td>";
                string text5 = "#ffffff";
                string text6 = "&nbsp;";
                double num9  = double.Parse(set.Tables[0].Rows[i]["truewin"].ToString().Trim());
                double num10 = double.Parse(set.Tables[0].Rows[i]["win"].ToString().Trim());
                double num11 = double.Parse(set.Tables[0].Rows[i]["lose"].ToString().Trim());
                string text7 = set.Tables[0].Rows[i]["ds"].ToString().Trim();
                if ((num10 > 0) && (num9 == 1))
                {
                    text5 = "#FF9B9B";
                    text6 = "全赢";
                }
                else if (num9 == 0.5)
                {
                    text5 = "#A6D5EE";
                    text6 = "和局";
                }
                else if ((num11 > 0) && (num9 == 1))
                {
                    text5 = "#FFFF99";
                    text6 = "全输";
                }
                else if ((num10 > 0) && (num9 == 2))
                {
                    text5 = "#FF9B9B";
                    text6 = text7;
                }
                string text11 = text3;
                text3 = (text11 + "<td align=\"center\" valign=\"top\" style='background-color: " + text5 + ";'>" + text6) + "</td>" + "<td align=\"right\" valign=\"top\">";
                if (set.Tables[0].Rows[i]["isdanger"].ToString().Trim().ToUpper() == "2")
                {
                    text3 = text3 + "<font color=red>危险球取消</font>";
                }
                else if (set.Tables[0].Rows[i]["iscancel"].ToString().Trim().ToUpper() == "TRUE")
                {
                    text3 = text3 + "<font color=red>已取消</font>";
                }
                else
                {
                    double num12 = double.Parse(set.Tables[0].Rows[i]["win"].ToString().Trim()) - double.Parse(set.Tables[0].Rows[i]["lose"].ToString().Trim());
                    text3 = text3 + MyFunc.NumBerFormat(num12.ToString());
                }
                text3 = text3 + "</td><td align=center>";
                if ((this.Session.Contents["classid"] != null) && (this.Session.Contents["classid"].ToString().Trim() == "3"))
                {
                    text3 = text3 + "<font color=red>不能操作</font>";
                }
                else if (set.Tables[0].Rows[i]["iscancel"].ToString().Trim().ToUpper() == "TRUE")
                {
                    string text12 = text3;
                    text3 = text12 + "<a href=orderlist.aspx?action=resume&orderid=" + set.Tables[0].Rows[i]["orderid"].ToString().Trim() + "&start=" + start_date + "&end=" + end_date + "&flag=" + isjs + "&bid=" + ballid + "&type=" + tztype + "&gid=" + gdid + "&zid=" + zdlid + "&did=" + dlsid + "&uid=" + userid + "&uname=" + username + "&oid=" + orderid + "&t1=" + t1 + "&t2=" + t2 + "&matchname=" + matchname + "&tzmoney=" + tzmoney + "&rr=" + rr + "&isc=" + iscancel + "&isw=" + iswin + "&page=" + curPage.ToString() + " onclick=\"return confirm('确定要恢复该注单吗?')\"><font color=red>恢复</font></a>";
                }
                else
                {
                    string text13 = text3;
                    text3 = text13 + "<a href=orderlist.aspx?action=cancel&orderid=" + set.Tables[0].Rows[i]["orderid"].ToString().Trim() + "&start=" + start_date + "&end=" + end_date + "&flag=" + isjs + "&bid=" + ballid + "&type=" + tztype + "&gid=" + gdid + "&zid=" + zdlid + "&did=" + dlsid + "&uid=" + userid + "&uname=" + username + "&oid=" + orderid + "&t1=" + t1 + "&t2=" + t2 + "&matchname=" + matchname + "&tzmoney=" + tzmoney + "&rr=" + rr + "&isc=" + iscancel + "&isw=" + iswin + "&page=" + curPage.ToString() + " onclick=\"return confirm('确定要取消该注单吗?')\">取消</a>";
                    num5 += double.Parse(set.Tables[0].Rows[i]["tzmoney"].ToString().Trim());
                    num6 += double.Parse(set.Tables[0].Rows[i]["win"].ToString().Trim()) - double.Parse(set.Tables[0].Rows[i]["lose"].ToString().Trim());
                }
                num7++;
                text4 = text4 + set.Tables[0].Rows[i]["orderid"].ToString().Trim() + ",";
            }
            string text14 = text3;

            text3 = (text14 + "<tr class=\"sum\"><form name='form1' method='post' action='OrderList.aspx'><input name='action' type='hidden' value='kygl'><input name='order_list' type='hidden' value='" + text4 + "'><td colspan=\"4\"><input type=submit value='取消本页注单' onclick=\"return confirm('确定要取消本页所有注单吗?')\" class=text></td></form><td>当前笔数:" + num7.ToString() + "</td><td>&nbsp;</td><td>" + MyFunc.NumBerFormat(num5.ToString()) + "</td><td>&nbsp;</td><td>" + MyFunc.NumBerFormat(num6.ToString()) + "</td><td>&nbsp;</td></tr>") + "<tr><td colspan=10 align=right bgcolor=#ffffff>" + MyFunc.MulitPager(totalRecord, pagesize, curPage, "OrderList.aspx?start=" + start_date + "&end=" + end_date + "&flag=" + isjs + "&bid=" + ballid + "&type=" + tztype + "&gid=" + gdid + "&zid=" + zdlid + "&did=" + dlsid + "&uid=" + userid + "&oid=" + orderid + "&t1=" + t1 + "&t2=" + t2 + "&matchname=" + matchname + "&tzmoney=" + tzmoney + "&rr=" + rr + "&isc=" + iscancel + "&isw=" + iswin) + "</td></tr>";
            SqlDataReader reader = base2.ExecuteReader("SELECT ISNULL(COUNT(1),0) AS ordercount,ISNULL(sum(tzmoney),0) AS tzcount,ISNULL(sum(win-lose),0) AS wincount FROM ball_order " + text2);

            if (reader.Read())
            {
                string text15 = text3;
                text3 = text15 + "<tr class=\"sum\"><td colspan=\"4\">&nbsp;</td><td>总笔数:" + reader["ordercount"].ToString().Trim() + "</td><td>&nbsp;</td><td>" + MyFunc.NumBerFormat(reader["tzcount"].ToString()) + "</td><td>&nbsp;</td><td>" + MyFunc.NumBerFormat(reader["wincount"].ToString()) + "</td><td>&nbsp;</td></tr>";
            }
            reader.Close();
            base2.Dispose();
            return(text3);
        }
Пример #8
0
 public MYVector3()
     : base(typeof(Vector3), "Vector3")
 {
     function = new MyFunc();
 }
 public void Query(Vector3 pos, float range, MyFunc<float, KdTreeObject, bool> visitor)
 {
     if (null != m_KdTree && m_ObjectNum > 0 && m_KdTree.Length > 0) {
         float rangeSq = Sqr(range);
         QueryImpl(pos, range, rangeSq, visitor);
     }
 }
Пример #10
0
        private void QueryImpl(Vector3 pos, float range, float rangeSq, MyFunc<float, KdTreeObject, bool> visitor)
        {
            m_QueryStack.Push(0);
            while (m_QueryStack.Count > 0) {
                int node = m_QueryStack.Pop();
                int begin = m_KdTree[node].m_Begin;
                int end = m_KdTree[node].m_End;
                int left = m_KdTree[node].m_Left;
                int right = m_KdTree[node].m_Right;

                if (end > begin) {
                    for (int i = begin; i < end; ++i) {
                        KdTreeObject obj = m_Objects[i];
                        if (Geometry.RectangleOverlapRectangle(pos.X - range, pos.Z - range, pos.X + range, pos.Z + range, obj.MinX, obj.MinZ, obj.MaxX, obj.MaxZ)) {
                            float distSq = Geometry.DistanceSquare(pos, obj.Position);
                            if (!visitor(distSq, obj)) {
                                m_QueryStack.Clear();
                                return;
                            }
                        }
                    }
                }

                float minX = m_KdTree[node].m_MinX;
                float minZ = m_KdTree[node].m_MinZ;
                float maxX = m_KdTree[node].m_MaxX;
                float maxZ = m_KdTree[node].m_MaxZ;

                bool isVertical = (maxX - minX > maxZ - minZ);
                float splitValue = (isVertical ? 0.5f * (maxX + minX) : 0.5f * (maxZ + minZ));

                if ((isVertical ? pos.X + range : pos.Z + range) < splitValue) {
                    if (left > 0)
                        m_QueryStack.Push(left);
                } else if ((isVertical ? pos.X - range : pos.Z - range) < splitValue) {
                    if (left > 0)
                        m_QueryStack.Push(left);
                    if (right > 0)
                        m_QueryStack.Push(right);
                } else {
                    if (right > 0)
                        m_QueryStack.Push(right);
                }
            }
        }
Пример #11
0
        private void topMenuProcess()
        {
            string s;
            string ltype     = "C";
            string retime    = "-1";
            string strMethod = "rqsbc";

            if (base.Request.Form["selectZD"] != null)
            {
                this.Session["sessionSelectZD"] = base.Request.Form["selectZD"].ToString();
            }
            else if (this.Session["sessionSelectZD"] == null)
            {
                this.Session["sessionSelectZD"] = "无有单";
            }
            if (base.Request.Form["staticCS"] != null)
            {
                this.Session["sessionSelectStaticCS"] = base.Request.Form["staticCS"].ToString();
            }
            else if (this.Session["sessionSelectStaticCS"] == null)
            {
                this.Session["sessionSelectStaticCS"] = "全部";
            }
            if (base.Request.Form["ltype"] != null)
            {
                ltype = base.Request.Form["ltype"].ToString().Trim();
                this.Session["football_b_ltype"] = ltype;
            }
            else if (this.Session["football_b_ltype"] != null)
            {
                ltype = this.Session["football_b_ltype"].ToString().Trim();
            }
            if (base.Request.Form["retime"] != null)
            {
                retime = base.Request.Form["retime"].ToString().Trim();
                this.Session["football_b_retime"] = retime;
            }
            else if (this.Session["football_b_retime"] != null)
            {
                retime = this.Session["football_b_retime"].ToString().Trim();
            }
            if (ltype.ToUpper() == "A")
            {
                this.abcadd = 0.01;
            }
            if (ltype.ToUpper() == "B")
            {
                this.abcadd = 0.03;
            }
            if (ltype.ToUpper() == "D")
            {
                this.abcadd = -0.015;
            }
            switch (ltype.ToUpper())
            {
            case "A":
                this.Session.Contents["ABC"]  = double.Parse(ConfigurationSettings.AppSettings["UserPlA"].ToString().Trim());
                this.Session.Contents["ABC1"] = double.Parse(ConfigurationSettings.AppSettings["UserPlA1"].ToString().Trim());
                goto Label_0464;

            case "B":
                this.Session.Contents["ABC"]  = double.Parse(ConfigurationSettings.AppSettings["UserPlB"].ToString().Trim());
                this.Session.Contents["ABC1"] = double.Parse(ConfigurationSettings.AppSettings["UserPlB1"].ToString().Trim());
                goto Label_0464;

            case "C":
                this.Session.Contents["ABC"]  = double.Parse(ConfigurationSettings.AppSettings["UserPlC"].ToString().Trim());
                this.Session.Contents["ABC1"] = double.Parse(ConfigurationSettings.AppSettings["UserPlC1"].ToString().Trim());
                break;

            case "D":
                this.Session.Contents["ABC"]  = double.Parse(ConfigurationSettings.AppSettings["UserPlD"].ToString().Trim());
                this.Session.Contents["ABC1"] = double.Parse(ConfigurationSettings.AppSettings["UserPlD1"].ToString().Trim());
                break;
            }
Label_0464:
            s = MyFunc.pintingAgenceMenu(ltype, retime, strMethod);
            base.Response.Write(s);
        }
 void func(MyFunc<int,string> myfunc, int val){
     Console.WriteLine(myfunc(val));
 }
Пример #13
0
 public MYGameObject()
     : base(typeof(GameObject), "GameObject")
 {
     function = new MyFunc();
 }
Пример #14
0
    public MYDebug():base(typeof(Debug),"Debug")
{
    function = new MyFunc();
}
Пример #15
0
 internal void QueueAction <T1, T2, T3, T4, T5, T6, T7, R>(MyFunc <T1, T2, T3, T4, T5, T6, T7, R> action, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7)
 {
     QueueActionWithDelegation(action, t1, t2, t3, t4, t5, t6, t7);
 }
Пример #16
0
 internal void QueueAction <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R>(MyFunc <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R> action, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16)
 {
     QueueActionWithDelegation(action, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16);
 }
Пример #17
0
        public void DispatchAction <R>(MyFunc <R> action)
        {
            IActionQueue actionQueue = GetActionQueue();

            actionQueue.QueueAction(action);
        }
Пример #18
0
        public void QueueAction <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R>(MyFunc <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R> action, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14)
        {
            bool needUseLambda = true;
            ObjectPool <PoolAllocatedFunc <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R> > pool;

            m_ActionPools.GetOrNewData(out pool);
            if (null != pool)
            {
                PoolAllocatedFunc <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R> helper = pool.Alloc();
                if (null != helper)
                {
                    helper.SetPoolRecycleLock(m_LockForAsyncActionRun);
                    helper.Init(action, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14);
                    m_Actions.Enqueue(helper.Run);
                    needUseLambda = false;
                }
            }
            if (needUseLambda)
            {
                m_Actions.Enqueue(() => { action(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14); });
                LogSystem.Warn("QueueAction {0}({1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12},{13},{14}) use lambda expression, maybe out of memory.", action.Method.ToString(), t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14);
            }
        }
Пример #19
0
        public void DispatchAction <T1, T2, R>(MyFunc <T1, T2, R> action, T1 t1, T2 t2)
        {
            IActionQueue actionQueue = GetActionQueue();

            actionQueue.QueueAction(action, t1, t2);
        }
Пример #20
0
 public void Query(float x, float y, float z, float range, MyFunc<float, KdTreeObject, bool> visitor)
 {
     Query(new Vector3(x, y, z), range, visitor);
 }
Пример #21
0
        public void DispatchAction <T1, T2, T3, T4, R>(MyFunc <T1, T2, T3, T4, R> action, T1 t1, T2 t2, T3 t3, T4 t4)
        {
            IActionQueue actionQueue = GetActionQueue();

            actionQueue.QueueAction(action, t1, t2, t3, t4);
        }
 public static bool SpinUntil(MyFunc<bool> condition, TimeSpan timeout)
 {
     return SpinUntil (condition, (int)timeout.TotalMilliseconds);
 }
Пример #23
0
        public void DispatchAction <T1, T2, T3, T4, T5, T6, T7, R>(MyFunc <T1, T2, T3, T4, T5, T6, T7, R> action, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7)
        {
            IActionQueue actionQueue = GetActionQueue();

            actionQueue.QueueAction(action, t1, t2, t3, t4, t5, t6, t7);
        }
Пример #24
0
 private void Page_Load(object sender, EventArgs e)
 {
     MyFunc.isRefUrl();
     if (((this.Session.Contents["classid"] != null) && (this.Session.Contents["classid"].ToString().Trim() != "1")) && ((this.Session.Contents["classid"].ToString().Trim() != "2") && (this.Session.Contents["classid"].ToString().Trim() != "3")))
     {
         MyFunc.goToLoginPage();
         base.Response.End();
     }
     else if ((this.Session.Contents["adminclassid"] != null) && (this.Session.Contents["adminclassid"].ToString().Trim() != "5"))
     {
         MyFunc.goToLoginPage();
         base.Response.End();
     }
     else if ((this.Session.Contents["classid"] == null) && (this.Session.Contents["adminclassid"] == null))
     {
         MyFunc.goToLoginPage();
         base.Response.End();
     }
     else if (!base.IsPostBack)
     {
         string text;
         string text2;
         string isjs;
         string tztype;
         string ballid;
         string gdid;
         string zdlid;
         string dlsid;
         string userid;
         string orderid;
         string text11;
         string text12;
         string matchname;
         string tzmoney;
         string rr;
         string iscancel;
         string iswin;
         string username;
         if (((base.Request.Form["action"] != null) && (base.Request.Form["action"].ToString().Trim() == "kygl")) && (base.Request.Form["order_list"] != null))
         {
             if (base.Request.Form["order_list"].ToString().Trim() != "")
             {
                 this.CancelOrderList(base.Request.Form["order_list"].ToString().Trim());
             }
             else
             {
                 MyFunc.showmsg("本页没有注单");
                 base.Response.End();
                 return;
             }
         }
         if (((base.Request.QueryString["action"] != null) && (base.Request.QueryString["action"].ToString().Trim() == "cancel")) && ((base.Request.QueryString["orderid"] != null) && (base.Request.QueryString["orderid"].ToString().Trim() != "")))
         {
             this.OrderOp("1", base.Request.QueryString["orderid"].ToString().Trim().Replace(" ", "").Replace("'", ""));
         }
         if (((base.Request.QueryString["action"] != null) && (base.Request.QueryString["action"].ToString().Trim() == "resume")) && ((base.Request.QueryString["orderid"] != null) && (base.Request.QueryString["orderid"].ToString().Trim() != "")))
         {
             this.OrderOp("0", base.Request.QueryString["orderid"].ToString().Trim().Replace(" ", "").Replace("'", ""));
         }
         if ((base.Request.QueryString["start"] != null) && (base.Request.QueryString["start"].ToString().Trim() != ""))
         {
             text = base.Request.QueryString["start"].ToString().Trim();
         }
         else
         {
             text = DateTime.Now.ToShortDateString();
         }
         if ((base.Request.QueryString["end"] != null) && (base.Request.QueryString["end"].ToString().Trim() != ""))
         {
             text2 = base.Request.QueryString["end"].ToString().Trim();
         }
         else
         {
             text2 = DateTime.Now.ToShortDateString();
         }
         if ((base.Request.QueryString["flag"] != null) && (base.Request.QueryString["flag"].ToString().Trim() != ""))
         {
             isjs = base.Request.QueryString["flag"].ToString().Trim();
         }
         else
         {
             isjs = "";
         }
         if ((base.Request.QueryString["isc"] != null) && (base.Request.QueryString["isc"].ToString().Trim() != ""))
         {
             iscancel = "1";
         }
         else
         {
             iscancel = "";
         }
         if ((base.Request.QueryString["isw"] != null) && (base.Request.QueryString["isw"].ToString().Trim() != ""))
         {
             iswin = base.Request.QueryString["isw"].ToString().Trim();
         }
         else
         {
             iswin = "";
         }
         if ((base.Request.QueryString["bid"] != null) && (base.Request.QueryString["bid"].ToString().Trim() != ""))
         {
             ballid = base.Request.QueryString["bid"].ToString().Trim();
         }
         else
         {
             ballid = "";
         }
         if ((base.Request.QueryString["type"] != null) && (base.Request.QueryString["type"].ToString().Trim() != ""))
         {
             tztype = base.Request.QueryString["type"].ToString().Trim();
         }
         else
         {
             tztype = "";
         }
         if ((base.Request.QueryString["gid"] != null) && (base.Request.QueryString["gid"].ToString().Trim() != ""))
         {
             gdid = base.Request.QueryString["gid"].ToString().Trim();
         }
         else
         {
             gdid = "";
         }
         if ((base.Request.QueryString["zid"] != null) && (base.Request.QueryString["zid"].ToString().Trim() != ""))
         {
             zdlid = base.Request.QueryString["zid"].ToString().Trim();
         }
         else
         {
             zdlid = "";
         }
         if ((base.Request.QueryString["did"] != null) && (base.Request.QueryString["did"].ToString().Trim() != ""))
         {
             dlsid = base.Request.QueryString["did"].ToString().Trim();
         }
         else
         {
             dlsid = "";
         }
         if ((base.Request.QueryString["uid"] != null) && (base.Request.QueryString["uid"].ToString().Trim() != ""))
         {
             userid = base.Request.QueryString["uid"].ToString().Trim();
         }
         else
         {
             userid = "";
         }
         if ((base.Request.QueryString["uname"] != null) && (base.Request.QueryString["uname"].ToString().Trim() != ""))
         {
             username = base.Request.QueryString["uname"].ToString().Trim();
         }
         else
         {
             username = "";
         }
         if ((base.Request.QueryString["oid"] != null) && (base.Request.QueryString["oid"].ToString().Trim() != ""))
         {
             orderid = base.Request.QueryString["oid"].ToString().Trim();
         }
         else
         {
             orderid = "";
         }
         if ((base.Request.QueryString["t1"] != null) && (base.Request.QueryString["t1"].ToString().Trim() != ""))
         {
             text11 = base.Request.QueryString["t1"].ToString().Trim();
         }
         else
         {
             text11 = "00:00:00";
         }
         if ((base.Request.QueryString["t2"] != null) && (base.Request.QueryString["t2"].ToString().Trim() != ""))
         {
             text12 = base.Request.QueryString["t2"].ToString().Trim();
         }
         else
         {
             text12 = "23:59:59";
         }
         if ((base.Request.QueryString["matchname"] != null) && (base.Request.QueryString["matchname"].ToString().Trim() != ""))
         {
             matchname = base.Request.QueryString["matchname"].ToString().Trim();
         }
         else
         {
             matchname = "";
         }
         if ((base.Request.QueryString["tzmoney"] != null) && (base.Request.QueryString["tzmoney"].ToString().Trim() != ""))
         {
             tzmoney = base.Request.QueryString["tzmoney"].ToString().Trim();
         }
         else
         {
             tzmoney = "";
         }
         if ((base.Request.QueryString["rr"] != null) && (base.Request.QueryString["rr"].ToString().Trim() != ""))
         {
             rr = base.Request.QueryString["rr"].ToString().Trim();
         }
         else
         {
             rr = "";
         }
         this.kyglContent = this.GetOrderList(text, text2, text11, text12, isjs, tztype, ballid, gdid, zdlid, dlsid, userid, username, orderid, matchname, tzmoney, rr, iscancel, iswin);
         this.DataBind();
     }
 }
Пример #25
0
        public void DispatchAction <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R>(MyFunc <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R> action, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10)
        {
            IActionQueue actionQueue = GetActionQueue();

            actionQueue.QueueAction(action, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10);
        }
Пример #26
0
        private void ShowMonthContent()
        {
            string text = "";
            string sql  = "";
            int    num  = 0;
            double num2 = 0;
            double num3 = 0;
            double num4 = 0;
            double num5 = 0;

            text = "<table border=0 cellspacing=1 cellpadding=0 class=tableNoBorder1 width=100%>\n";
            text = text + "<tr class=dlsheader><td width=15%>日期</td><td width=5% nowrap>投注数</td><td width=20%>投注额</td><td width=20%>结果</td><td width=20%>代理商</td><td width=20%>总代理</td></tr>\n";
            DataBase      base2  = new DataBase(MyFunc.GetConnStr(2));
            SqlDataReader reader = null;

            for (int i = 0; i < 30; i++)
            {
                sql    = "SELECT isnull(sum(mdls),0) as dlsmoney,isnull(sum(mzdl),0) as zdlmoney,count(*) as tzcount,isnull(sum(tzmoney),0) as tzmoney,isnull(sum(win-lose),0) as result FROM ball_order WHERE dlsid = '" + this.userId + "' AND datediff(day,updatetime,'" + DateTime.Today.AddDays((double)-i).ToShortDateString() + "') = 0";
                reader = base2.ExecuteReader(sql);
                while (reader.Read())
                {
                    text = text + "<tr bgcolor=white align=right height=22>";
                    if (reader["tzcount"].ToString() != "0")
                    {
                        string text3 = text;
                        text  = (((((text3 + "<td align=center nowrap><a href='dlslist_reportcontent.aspx?userid=" + this.userId + "&username="******"&updatetime=" + DateTime.Today.AddDays((double)-i).ToString("yyyy-MM-dd") + "'><font color=blue>" + DateTime.Today.AddDays((double)-i).ToString("yyyy-MM-dd") + "-" + MyFunc.DayToWeek(DateTime.Today.AddDays((double)-i)) + "<font></a></td>") + "<td align=center>" + reader["tzcount"].ToString() + "</td>") + "<td>" + Convert.ToDouble(reader["tzmoney"]).ToString() + "</td>") + "<td>" + MyFunc.NumBerFormat(reader["result"].ToString()) + "</td>") + "<td>" + MyFunc.NumBerFormat(reader["dlsmoney"].ToString()) + "</td>") + "<td>" + MyFunc.NumBerFormat(reader["zdlmoney"].ToString()) + "</td>";
                        num  += int.Parse(reader["tzcount"].ToString());
                        num2 += double.Parse(reader["tzmoney"].ToString());
                        num3 += double.Parse(reader["dlsmoney"].ToString());
                        num4 += double.Parse(reader["zdlmoney"].ToString());
                        num5 += double.Parse(reader["result"].ToString());
                    }
                    else
                    {
                        string text4 = text;
                        text = (((((text4 + "<td align=center nowrap>" + DateTime.Today.AddDays((double)-i).ToString("yyyy-MM-dd") + "-" + MyFunc.DayToWeek(DateTime.Today.AddDays((double)-i)) + "</a></td>") + "<td align=center>" + reader["tzcount"].ToString() + "</td>") + "<td>" + Convert.ToDouble(reader["tzmoney"]).ToString() + "</td>") + "<td>" + MyFunc.NumBerFormat(reader["result"].ToString()) + "</td>") + "<td>" + MyFunc.NumBerFormat(reader["dlsmoney"].ToString()) + "</td>") + "<td>" + MyFunc.NumBerFormat(reader["zdlmoney"].ToString()) + "</td>";
                    }
                    text = text + "</tr>\n";
                }
                reader.Close();
            }
            text = ((((((text + "<tr class=reportTotalnum align=right height=22><td class=reportTotalchar>总 数</td>") + "<td align=center>" + num.ToString() + "</td>") + "<td>" + num2.ToString() + "</td>") + "<td>" + MyFunc.NumBerFormat(num5.ToString()) + "</td>") + "<td>" + MyFunc.NumBerFormat(num3.ToString()) + "</td>") + "<td>" + MyFunc.NumBerFormat(num4.ToString()) + "</td>") + "</tr></table>\n";
            this.tableHeader.Rows[3].Cells[0].InnerHtml = text;
        }
Пример #27
0
        public void DispatchAction <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R>(MyFunc <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R> action, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16)
        {
            IActionQueue actionQueue = GetActionQueue();

            actionQueue.QueueAction(action, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16);
        }
Пример #28
0
 internal void QueueAction <T1, R>(MyFunc <T1, R> action, T1 t1)
 {
     QueueActionWithDelegation(action, t1);
 }
Пример #29
0
 private void OpUser(string flag, string id, string dlsid)
 {
     if (!MyFunc.CheckUserLogin(this.Session.Contents["adminusername"].ToString().Trim(), this.Session.Contents["adminuserpass"].ToString().Trim(), "0", 1))
     {
         MyFunc.goToLoginPage();
     }
     else
     {
         DataBase base2 = new DataBase(MyFunc.GetConnStr(2));
         if (flag == "1")
         {
             SqlDataReader reader = base2.ExecuteReader("SELECT dlsid,zdlid,gdid FROM member WHERE userid=" + id);
             reader.Read();
             string text3 = reader["dlsid"].ToString().Trim();
             string text = reader["zdlid"].ToString().Trim();
             string text2 = reader["gdid"].ToString().Trim();
             reader.Close();
             int num = int.Parse(base2.ExecuteScalar("SELECT maxmem FROM agence WHERE userid=" + text3).ToString());
             if (num > 0)
             {
                 int num2 = int.Parse(base2.ExecuteScalar("SELECT COUNT(1) FROM member WHERE dlsid=" + text3 + " AND isuseable=1").ToString());
                 if (num < (num2 + 1))
                 {
                     base2.Dispose();
                     MyFunc.showmsg("该代理商的最大会员数为 " + num.ToString() + ",不能再启用会员");
                     base.Response.End();
                     return;
                 }
             }
             else
             {
                 int num3 = int.Parse(base2.ExecuteScalar("SELECT maxmem FROM agence WHERE userid=" + text).ToString());
                 if (num3 > 0)
                 {
                     int num4 = int.Parse(base2.ExecuteScalar("SELECT COUNT(1) FROM member WHERE zdlid=" + text + " AND isuseable=1").ToString());
                     if (num3 < (num4 + 1))
                     {
                         base2.Dispose();
                         MyFunc.showmsg("您的最大会员数为 " + num.ToString() + ",不能再启用会员");
                         base.Response.End();
                         return;
                     }
                 }
                 else
                 {
                     int num5 = int.Parse(base2.ExecuteScalar("SELECT maxmem FROM agence WHERE userid=" + text2).ToString());
                     if (num5 > 0)
                     {
                         int num6 = int.Parse(base2.ExecuteScalar("SELECT COUNT(1) FROM member WHERE gdid=" + text2 + " AND isuseable=1").ToString());
                         if (num5 < (num6 + 1))
                         {
                             base2.Dispose();
                             MyFunc.showmsg("该股东的最大会员数为 " + num.ToString() + ",不能再启用会员");
                             base.Response.End();
                             return;
                         }
                     }
                 }
             }
         }
         base2.ExecuteNonQuery("UPDATE member SET isuseable=" + flag + " WHERE userid=" + id);
         base2.Dispose();
     }
 }
Пример #30
0
 internal void QueueAction <T1, T2, T3, T4, T5, R>(MyFunc <T1, T2, T3, T4, T5, R> action, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)
 {
     QueueActionWithDelegation(action, t1, t2, t3, t4, t5);
 }
Пример #31
0
 private void Page_Load(object sender, EventArgs e)
 {
     MyFunc.isRefUrl();
     if (!MyFunc.CheckUserLogin(1) || !MyTeam.OnlineList.OnlineList.isUserLogin(1))
     {
         MyFunc.goToLoginPage();
         base.Response.End();
     }
     else if (!base.IsPostBack)
     {
         if (((base.Request.QueryString["action"] != null) && (base.Request.QueryString["id"] != null)) && (base.Request.QueryString["id"].ToString().Trim() != ""))
         {
             if (base.Request.QueryString["action"].ToString().Trim().ToUpper() == "OPEN")
             {
                 this.OpUser("1", base.Request.QueryString["id"].ToString().Trim(), base.Request.QueryString["did"].ToString().Trim());
             }
             else if (base.Request.QueryString["action"].ToString().Trim().ToUpper() == "CLOSE")
             {
                 this.OpUser("0", base.Request.QueryString["id"].ToString().Trim(), base.Request.QueryString["did"].ToString().Trim());
             }
             else
             {
                 if (base.Request.QueryString["action"].ToString().Trim().ToUpper() != "DEL")
                 {
                     return;
                 }
                 this.DelUser(base.Request.QueryString["id"].ToString().Trim(), base.Request.QueryString["did"].ToString().Trim());
             }
         }
         DataBase base2 = new DataBase(MyFunc.GetConnStr(2));
         this.DropDownListGd.Items.Clear();
         this.DropDownListGd.Items.Add(new ListItem("请选择", "0"));
         SqlDataReader reader = base2.ExecuteReader("SELECT userid,username FROM agence WHERE classid=2 AND gdid = '" + this.Session["adminuserid"].ToString() + "'");
         while (reader.Read())
         {
             this.DropDownListGd.Items.Add(new ListItem(reader["username"].ToString().Trim(), reader["userid"].ToString().Trim()));
         }
         reader.Close();
         this.DropDownListGd.SelectedIndex = 0;
         if ((base.Request.QueryString["gdid"] != null) && (base.Request.QueryString["gdid"].ToString().Trim() != ""))
         {
             this.DropDownListGd.SelectedValue = base.Request.QueryString["gdid"].ToString().Trim();
         }
         this.ZdlList();
         if ((base.Request.QueryString["zid"] != null) && (base.Request.QueryString["zid"].ToString().Trim() != ""))
         {
             this.DropDownListZdl.SelectedValue = base.Request.QueryString["zid"].ToString().Trim();
         }
         this.DlsList();
         if ((base.Request.QueryString["did"] != null) && (base.Request.QueryString["did"].ToString().Trim() != ""))
         {
             this.DropDownListDls.SelectedValue = base.Request.QueryString["did"].ToString().Trim();
         }
         if ((base.Request.QueryString["flag"] != null) && (base.Request.QueryString["flag"].ToString().Trim() != ""))
         {
             this.DropDownListAccountStatus.SelectedValue = base.Request.QueryString["flag"].ToString().Trim();
         }
         this.PageList(this.DropDownListAccountStatus.SelectedValue);
         this.DataGrid1.PageSize = this.pagesize;
         this.DataGridDataBind(this.DropDownListAccountStatus.SelectedValue, this.TextBoxSortField.Text, int.Parse(this.DropDownListPage.SelectedValue));
         base2.Dispose();
     }
 }
Пример #32
0
 internal void QueueAction <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R>(MyFunc <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R> action, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10)
 {
     QueueActionWithDelegation(action, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10);
 }
Пример #33
0
 public void QueryWithFunc(float x, float y, float z, float range, MyFunc <float, KdTreeObject, bool> visitor)
 {
     QueryWithFunc(new Vector3(x, y, z), range, visitor);
 }
Пример #34
0
 private void Awake()
 {
     gold = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI).GetComponent <GoldUi>();
 }
Пример #35
0
 public void QueryWithFunc(EntityInfo obj, float range, MyFunc <float, KdTreeObject, bool> visitor)
 {
     QueryWithFunc(obj.GetMovementStateInfo().GetPosition3D(), range, visitor);
 }
Пример #36
0
        private string SumAllMember()
        {
            string        text2   = "";
            string        text3   = "";
            string        text4   = "";
            int           index   = 0;
            DataBase      base2   = new DataBase(MyFunc.GetConnStr(2));
            DataBase      base3   = new DataBase(MyFunc.GetConnStr(1));
            SqlDataReader reader  = null;
            SqlDataReader reader2 = null;
            DataSet       set     = null;
            double        num3    = 0;

            string[] textArray = "01,11,21,31,41,总单,02,12,22,32,42,总双,03,13,23,33,43,总大,04,14,24,34,44,总小,05,15,25,35,45,06,16,26,36,46,07,17,27,37,47,08,18,28,38,48,09,19,29,39,49,10,20,30,40".Split(new char[] { ',' });
            reader = base2.ExecuteReader("SELECT top 1 convert(nvarchar,updatetime,11) as updatetime,content,qishu,kaisai FROM affiche WHERE le=1 ORDER BY updatetime DESC");
            if (reader.Read())
            {
                DateTime time = Convert.ToDateTime(reader["kaisai"].ToString().Trim());
                TimeSpan span = DateTime.Now.Subtract(time);
                int      num4 = ((span.Days * 0x5a0) + (span.Hours * 60)) + span.Minutes;
                if (num4 < 360)
                {
                    object obj2 = text2;
                    text2 = string.Concat(new object[] { obj2, "<tr bgcolor='#FFFFFF' ><td rowspan=10>", reader["kaisai"].ToString().Split(new char[] { ' ' })[0].ToString().Trim(), "<BR>", reader["kaisai"].ToString().Split(new char[] { ' ' })[1].ToString().Trim(), "</td><td rowspan=10 align=center>", reader["qishu"], "</td>" });
                    text4 = reader["kaisai"].ToString();
                    reader.Close();
                    set = base3.ExecuteDataSet("SELECT v1.*,isnull((cl.giveup1sum-cl.giveup2sum)/cl.giveupmoney*giveuppl,0) as give FROM Pl as v1 LEFT JOIN changeleave as cl ON (v1.id = cl.ballid AND cl.gsid = '" + this.Session["usergsid"].ToString() + "')  where ((id>6 and id<11 )or (id>83 and id <133)) order by id asc");
                    for (int i = 0; i < 10; i++)
                    {
                        if (i != 0)
                        {
                            text2 = text2 + "<tr bgcolor='#FFFFFF' >";
                        }
                        if (this.Session["sessionSelectStaticCS"].ToString() == "全部")
                        {
                            reader2 = base2.ExecuteReader("select max(tztype) as tztype,max(tzteam) as tzteam,count(1) as orderno,isnull(sum(tzmoney),0) as summoney from ball_order where DATEDIFF(dd, GETDATE(), updatetime)=0 and dlsid = '" + this.Session["adminuserid"].ToString() + "' and ballid=" + set.Tables[0].Rows[i + 4]["id"].ToString().Trim() + " group by ballid order by ballid asc");
                        }
                        else
                        {
                            reader2 = base2.ExecuteReader("select max(tztype) as tztype,max(tzteam) as tzteam,count(1) as orderno,isnull(sum(tzmoney*csdls),0) as summoney from ball_order where DATEDIFF(dd, GETDATE(), updatetime)=0 and dlsid = '" + this.Session["adminuserid"].ToString() + "' and ballid=" + set.Tables[0].Rows[i + 4]["id"].ToString().Trim() + " group by ballid order by ballid desc");
                        }
                        text3 = double.Parse(MyFunc.GetPlType(set.Tables[0].Rows[i + 4]["pl"].ToString().Trim(), "0", set.Tables[0].Rows[i + 4]["give"].ToString().Trim(), "H", "0").ToString("F2")).ToString();
                        string text6 = text2;
                        text2 = text6 + "<td align=center background=" + MyFunc.GetRGB(textArray[index]) + " class=nums><font color=" + MyFunc.GetRGB(int.Parse(textArray[index])) + " size=3><b>" + textArray[index++] + "</b></font></td>";
                        if (reader2.Read())
                        {
                            string text7 = text2;
                            text2 = text7 + "<td align=center class=tznumer>" + text3 + "   <br>  <a href='tzinfo.aspx?gameid=" + set.Tables[0].Rows[i + 4]["id"].ToString().Trim() + "&tztype=9&marker=C'>  <font color=#000088>" + double.Parse(reader2["summoney"].ToString()).ToString() + "</font></a></td> ";
                            num3 += double.Parse(reader2["summoney"].ToString());
                        }
                        else
                        {
                            text2 = text2 + "<td align=center class=tznumer>" + text3 + "   <br>    <font color=#000088>0</font></a></td> ";
                        }
                        reader2.Close();
                        if (this.Session["sessionSelectStaticCS"].ToString() == "全部")
                        {
                            reader2 = base2.ExecuteReader("select max(tztype) as tztype,max(tzteam) as tzteam,count(1) as orderno,isnull(sum(tzmoney),0) as summoney from ball_order where DATEDIFF(dd, GETDATE(), updatetime)=0 and dlsid = '" + this.Session["adminuserid"].ToString() + "' and ballid=" + set.Tables[0].Rows[i + 14]["id"].ToString().Trim() + " group by ballid order by ballid asc");
                        }
                        else
                        {
                            reader2 = base2.ExecuteReader("select max(tztype) as tztype,max(tzteam) as tzteam,count(1) as orderno,isnull(sum(tzmoney*csdls),0) as summoney from ball_order where DATEDIFF(dd, GETDATE(), updatetime)=0 and dlsid = '" + this.Session["adminuserid"].ToString() + "' and ballid=" + set.Tables[0].Rows[i + 14]["id"].ToString().Trim() + " group by ballid order by ballid desc");
                        }
                        text3 = double.Parse(MyFunc.GetPlType(set.Tables[0].Rows[i + 14]["pl"].ToString().Trim(), "0", set.Tables[0].Rows[i + 14]["give"].ToString().Trim(), "H", "0").ToString("F2")).ToString();
                        string text8 = text2;
                        text2 = text8 + "<td align=center background=" + MyFunc.GetRGB(textArray[index]) + " class=nums><font color=" + MyFunc.GetRGB(int.Parse(textArray[index])) + " size=3><b>" + textArray[index++] + "</b></font></td>";
                        if (reader2.Read())
                        {
                            string text9 = text2;
                            text2 = text9 + "<td align=center class=tznumer>" + text3 + "   <br>  <a href='tzinfo.aspx?gameid=" + set.Tables[0].Rows[i + 14]["id"].ToString().Trim() + "&tztype=9&marker=C'>  <font color=#000088>" + double.Parse(reader2["summoney"].ToString()).ToString() + "</font></a></td> ";
                            num3 += double.Parse(reader2["summoney"].ToString());
                        }
                        else
                        {
                            text2 = text2 + "<td align=center class=tznumer>" + text3 + "   <br>    <font color=#000088>0</font></a></td> ";
                        }
                        reader2.Close();
                        if (this.Session["sessionSelectStaticCS"].ToString() == "全部")
                        {
                            reader2 = base2.ExecuteReader("select max(tztype) as tztype,max(tzteam) as tzteam,count(1) as orderno,isnull(sum(tzmoney),0) as summoney from ball_order where DATEDIFF(dd, GETDATE(), updatetime)=0 and dlsid = '" + this.Session["adminuserid"].ToString() + "' and ballid=" + set.Tables[0].Rows[i + 0x18]["id"].ToString().Trim() + " group by ballid order by ballid asc");
                        }
                        else
                        {
                            reader2 = base2.ExecuteReader("select max(tztype) as tztype,max(tzteam) as tzteam,count(1) as orderno,isnull(sum(tzmoney*csdls),0) as summoney from ball_order where DATEDIFF(dd, GETDATE(), updatetime)=0 and dlsid = '" + this.Session["adminuserid"].ToString() + "' and ballid=" + set.Tables[0].Rows[i + 0x18]["id"].ToString().Trim() + " group by ballid order by ballid desc");
                        }
                        text3 = double.Parse(MyFunc.GetPlType(set.Tables[0].Rows[i + 0x18]["pl"].ToString().Trim(), "0", set.Tables[0].Rows[i + 0x18]["give"].ToString().Trim(), "H", "0").ToString("F2")).ToString();
                        string text10 = text2;
                        text2 = text10 + "<td align=center background=" + MyFunc.GetRGB(textArray[index]) + " class=nums><font color=" + MyFunc.GetRGB(int.Parse(textArray[index])) + " size=3><b>" + textArray[index++] + "</b></font></td>";
                        if (reader2.Read())
                        {
                            string text11 = text2;
                            text2 = text11 + "<td align=center class=tznumer>" + text3 + "   <br>  <a href='tzinfo.aspx?gameid=" + set.Tables[0].Rows[i + 0x18]["id"].ToString().Trim() + "&tztype=9&marker=C'>  <font color=#000088>" + double.Parse(reader2["summoney"].ToString()).ToString() + "</font></a></td> ";
                            num3 += double.Parse(reader2["summoney"].ToString());
                        }
                        else
                        {
                            text2 = text2 + "<td align=center class=tznumer>" + text3 + "   <br>    <font color=#000088>0</font></a></td> ";
                        }
                        reader2.Close();
                        if (this.Session["sessionSelectStaticCS"].ToString() == "全部")
                        {
                            reader2 = base2.ExecuteReader("select max(tztype) as tztype,max(tzteam) as tzteam,count(1) as orderno,isnull(sum(tzmoney),0) as summoney from ball_order where DATEDIFF(dd, GETDATE(), updatetime)=0 and dlsid = '" + this.Session["adminuserid"].ToString() + "' and ballid=" + set.Tables[0].Rows[i + 0x22]["id"].ToString().Trim() + " group by ballid order by ballid asc");
                        }
                        else
                        {
                            reader2 = base2.ExecuteReader("select max(tztype) as tztype,max(tzteam) as tzteam,count(1) as orderno,isnull(sum(tzmoney*csdls),0) as summoney from ball_order where DATEDIFF(dd, GETDATE(), updatetime)=0 and dlsid = '" + this.Session["adminuserid"].ToString() + "' and ballid=" + set.Tables[0].Rows[i + 0x22]["id"].ToString().Trim() + " group by ballid order by ballid desc");
                        }
                        text3 = double.Parse(MyFunc.GetPlType(set.Tables[0].Rows[i + 0x22]["pl"].ToString().Trim(), "0", set.Tables[0].Rows[i + 0x22]["give"].ToString().Trim(), "H", "0").ToString("F2")).ToString();
                        string text12 = text2;
                        text2 = text12 + "<td align=center background=" + MyFunc.GetRGB(textArray[index]) + " class=nums><font color=" + MyFunc.GetRGB(int.Parse(textArray[index])) + " size=3><b>" + textArray[index++] + "</b></font></td>";
                        if (reader2.Read())
                        {
                            string text13 = text2;
                            text2 = text13 + "<td align=center class=tznumer>" + text3 + "   <br>  <a href='tzinfo.aspx?gameid=" + set.Tables[0].Rows[i + 0x22]["id"].ToString().Trim() + "&tztype=9&marker=C'>  <font color=#000088>" + double.Parse(reader2["summoney"].ToString()).ToString() + "</font></a></td> ";
                            num3 += double.Parse(reader2["summoney"].ToString());
                        }
                        else
                        {
                            text2 = text2 + "<td align=center class=tznumer>" + text3 + "   <br>    <font color=#000088>0</font></a></td> ";
                        }
                        reader2.Close();
                        if (i < 9)
                        {
                            if (this.Session["sessionSelectStaticCS"].ToString() == "全部")
                            {
                                reader2 = base2.ExecuteReader("select max(tztype) as tztype,max(tzteam) as tzteam,count(1) as orderno,isnull(sum(tzmoney),0) as summoney from ball_order where DATEDIFF(dd, GETDATE(), updatetime)=0 and dlsid = '" + this.Session["adminuserid"].ToString() + "' and ballid=" + set.Tables[0].Rows[i + 0x2c]["id"].ToString().Trim() + " group by ballid order by ballid asc");
                            }
                            else
                            {
                                reader2 = base2.ExecuteReader("select max(tztype) as tztype,max(tzteam) as tzteam,count(1) as orderno,isnull(sum(tzmoney*csdls),0) as summoney from ball_order where DATEDIFF(dd, GETDATE(), updatetime)=0 and dlsid = '" + this.Session["adminuserid"].ToString() + "' and ballid=" + set.Tables[0].Rows[i + 0x2c]["id"].ToString().Trim() + " group by ballid order by ballid desc");
                            }
                            text3 = double.Parse(MyFunc.GetPlType(set.Tables[0].Rows[i + 0x2c]["pl"].ToString().Trim(), "0", set.Tables[0].Rows[i + 0x2c]["give"].ToString().Trim(), "H", "0").ToString("F2")).ToString();
                            string text14 = text2;
                            text2 = text14 + "<td align=center background=" + MyFunc.GetRGB(textArray[index]) + " class=nums><font color=" + MyFunc.GetRGB(int.Parse(textArray[index])) + " size=3><b>" + textArray[index++] + "</b></font></td>";
                            if (reader2.Read())
                            {
                                string text15 = text2;
                                text2 = text15 + "<td align=center class=tznumer>" + text3 + "   <br>  <a href='tzinfo.aspx?gameid=" + set.Tables[0].Rows[i + 0x2c]["id"].ToString().Trim() + "&tztype=9&marker=C'>  <font color=#000088>" + double.Parse(reader2["summoney"].ToString()).ToString() + "</font></a></td> ";
                                num3 += double.Parse(reader2["summoney"].ToString());
                            }
                            else
                            {
                                text2 = text2 + "<td align=center class=tznumer>" + text3 + "   <br>    <font color=#000088>0</font></a></td> ";
                            }
                            reader2.Close();
                        }
                        else
                        {
                            text2 = text2 + "<td colspan=2>&nbsp;</td>";
                        }
                        if (i < 4)
                        {
                            if (this.Session["sessionSelectStaticCS"].ToString() == "全部")
                            {
                                reader2 = base2.ExecuteReader("select max(tztype) as tztype,max(tzteam) as tzteam,count(1) as orderno,isnull(sum(tzmoney),0) as summoney from ball_order where DATEDIFF(dd, GETDATE(), updatetime)=0 and dlsid = '" + this.Session["adminuserid"].ToString() + "' and ballid=" + set.Tables[0].Rows[i]["id"].ToString().Trim() + " group by ballid order by ballid asc");
                            }
                            else
                            {
                                reader2 = base2.ExecuteReader("select max(tztype) as tztype,max(tzteam) as tzteam,count(1) as orderno,isnull(sum(tzmoney*csdls),0) as summoney from ball_order where DATEDIFF(dd, GETDATE(), updatetime)=0 and dlsid = '" + this.Session["adminuserid"].ToString() + "' and ballid=" + set.Tables[0].Rows[i]["id"].ToString().Trim() + " group by ballid order by ballid desc");
                            }
                            text3 = double.Parse(MyFunc.GetPlType(set.Tables[0].Rows[i]["pl"].ToString().Trim(), this.Session.Contents["ABC"].ToString().Trim(), set.Tables[0].Rows[i]["give"].ToString().Trim(), "H", "0").ToString("F2")).ToString();
                            text2 = text2 + "<td align=center>" + textArray[index++] + "</td>";
                            if (reader2.Read())
                            {
                                object   obj3      = text2;
                                object[] objArray2 = new object[] { obj3, "<td align=center class=tznumer>", text3, "   <br>  <a href='tzinfo.aspx?gameid=", set.Tables[0].Rows[i]["id"].ToString().Trim(), "&tztype=", int.Parse(((i + 8) / 2).ToString()), "&marker=C'>  <font color=#000088>", double.Parse(reader2["summoney"].ToString()).ToString(), "</font></a></td> </tr>" };
                                text2 = string.Concat(objArray2);
                            }
                            else
                            {
                                text2 = text2 + "<td align=center class=tznumer>" + text3 + "   <br>    <font color=#000088>0</font></a></td> ";
                            }
                            reader2.Close();
                        }
                        else
                        {
                            text2 = text2 + "<td colspan=2>&nbsp;</td></tr>";
                        }
                    }
                    set.Dispose();
                }
            }
            reader.Close();
            base3.CloseConnect();
            base3.Dispose();
            base2.CloseConnect();
            base2.Dispose();
            string text16 = text2;

            string[] textArray24 = new string[8];
            textArray24[0] = text16;
            textArray24[1] = "<tr bgcolor='#ffffff' height='25' ><td colspan=14>本页总额<b><font color=blue>";
            textArray24[2] = num3.ToString();
            textArray24[3] = "</font></b>元(49粒),码均<b><font color=black>";
            textArray24[4] = (num3 / 49).ToString("F2");
            textArray24[5] = "</font></b>元;按陪率42(12水)估算:如中到<b><font color=red>";
            double num26 = (num3 * 0.88) / 7.1;

            textArray24[6] = double.Parse(num26.ToString()).ToString("F2");
            textArray24[7] = "</font></b>元投注额,本项目您将输彩</td></tr>";
            return(string.Concat(textArray24) + "\n</table></form></body></html>");
        }
Пример #37
0
        private void QueryImpl(Vector3 pos, float range, float rangeSq, MyFunc <float, KdTreeObject, bool> visitor)
        {
            m_QueryStack.Push(0);
            while (m_QueryStack.Count > 0)
            {
                int node  = m_QueryStack.Pop();
                int begin = m_KdTree[node].m_Begin;
                int end   = m_KdTree[node].m_End;
                int left  = m_KdTree[node].m_Left;
                int right = m_KdTree[node].m_Right;

                if (end > begin)
                {
                    for (int i = begin; i < end; ++i)
                    {
                        KdTreeObject obj = m_Objects[i];
                        if (Geometry.RectangleOverlapRectangle(pos.X - range, pos.Z - range, pos.X + range, pos.Z + range, obj.MinX, obj.MinZ, obj.MaxX, obj.MaxZ))
                        {
                            float distSq = Geometry.DistanceSquare(pos, obj.Position);
                            if (!visitor(distSq, obj))
                            {
                                m_QueryStack.Clear();
                                return;
                            }
                        }
                    }
                }

                float minX = m_KdTree[node].m_MinX;
                float minZ = m_KdTree[node].m_MinZ;
                float maxX = m_KdTree[node].m_MaxX;
                float maxZ = m_KdTree[node].m_MaxZ;

                bool  isVertical = (maxX - minX > maxZ - minZ);
                float splitValue = (isVertical ? 0.5f * (maxX + minX) : 0.5f * (maxZ + minZ));

                if ((isVertical ? pos.X + range : pos.Z + range) < splitValue)
                {
                    if (left > 0)
                    {
                        m_QueryStack.Push(left);
                    }
                }
                else if ((isVertical ? pos.X - range : pos.Z - range) < splitValue)
                {
                    if (left > 0)
                    {
                        m_QueryStack.Push(left);
                    }
                    if (right > 0)
                    {
                        m_QueryStack.Push(right);
                    }
                }
                else
                {
                    if (right > 0)
                    {
                        m_QueryStack.Push(right);
                    }
                }
            }
        }
Пример #38
0
 public void VisitTree(MyFunc<float, float, float, float, int, int, KdTreeObject[], bool> visitor)
 {
     if (null != m_KdTree && m_ObjectNum > 0 && m_KdTree.Length > 0) {
         VisitTreeImpl(visitor);
     }
 }
 internal SimpleFuncServiceRegistration(ServiceHandle serviceHandle, MyFunc <TContract> instanceCreator) : base(serviceHandle)
 {
     _serviceCount    = 1;
     _instanceCreator = instanceCreator;
 }
Пример #40
0
        private void VisitTreeImpl(MyFunc<float, float, float, float, int, int, KdTreeObject[], bool> visitor)
        {
            m_QueryStack.Push(0);
            while (m_QueryStack.Count > 0) {
                int node = m_QueryStack.Pop();

                int begin = m_KdTree[node].m_Begin;
                int end = m_KdTree[node].m_End;
                int left = m_KdTree[node].m_Left;
                int right = m_KdTree[node].m_Right;

                float minX = m_KdTree[node].m_MinX;
                float minZ = m_KdTree[node].m_MinZ;
                float maxX = m_KdTree[node].m_MaxX;
                float maxZ = m_KdTree[node].m_MaxZ;

                bool isVertical = (maxX - minX > maxZ - minZ);
                if (isVertical) {
                    float splitValue = 0.5f * (maxX + minX);
                    if (!visitor(splitValue, minZ, splitValue, maxZ, begin, end, m_Objects)) {
                        m_QueryStack.Clear();
                        return;
                    }
                } else {
                    float splitValue = 0.5f * (maxZ + minZ);
                    if (!visitor(minX, splitValue, maxX, splitValue, begin, end, m_Objects)) {
                        m_QueryStack.Clear();
                        return;
                    }
                }

                if (left > 0)
                    m_QueryStack.Push(left);
                if (right > 0)
                    m_QueryStack.Push(right);
            }
        }
Пример #41
0
 public void ShowDefaultMsg()
 {
     this.LabelLoginUserName.Text = this.Session.Contents["adminsubname"].ToString().Trim();
     this.TD_ToolBar.Rows[0].Cells[0].InnerHtml = MyFunc.printHeaderToolBar(this.Session.Contents["adminsubclassid"].ToString().Trim());
 }
Пример #42
0
 public void Query(EntityInfo obj, float range, MyFunc<float, KdTreeObject, bool> visitor)
 {
     Query(obj.GetMovementStateInfo().GetPosition3D(), range, visitor);
 }
Пример #43
0
        private void setShowContent()
        {
            int           curpage;
            int           start;
            string        sql        = this.GetSqlStr();
            string        sumSqlStr  = this.GetSumSqlStr();
            string        tzTypeName = MyFunc.GettzTypeName(this.tzType.Value);
            int           num        = 0;
            double        num2       = 0;
            double        num3       = 0;
            double        num4       = 0;
            StringBuilder builder    = new StringBuilder();
            DataBase      base2      = new DataBase(MyFunc.GetConnStr(2));
            int           pagesize   = 100;

            try
            {
                curpage = int.Parse(this.thePages.SelectedValue);
            }
            catch
            {
                curpage = 1;
            }
            if (curpage < 1)
            {
                curpage = 1;
            }
            builder.Append("<table border=0 cellspacing=1 cellpadding=0 width=100% class=tableNoBorder1>\n");
            builder.Append("<tr class=dlsheader><td width=10%>时间</td><td width=15%>会员 (win/lose)</td><td width=10%>方式</td><td width=25%>详情</td><td width=10%>注额</td><td width=10%>成数</td><td width=10%>注额(成数)</td><td width=10%>结果</td></tr>\n");
            int totalrecord = int.Parse(base2.ExecuteScalar(sumSqlStr).ToString());

            if (totalrecord == 0)
            {
                start = 0;
            }
            else
            {
                start = (curpage - 1) * pagesize;
            }
            DataSet set  = base2.ExecuteDataSet(sql, start, pagesize, "ball_order");
            int     num9 = 0;

            for (int i = 1; num9 < set.Tables[0].Rows.Count; i++)
            {
                builder.Append("<tr bgcolor=#ffffff align=right>");
                builder.Append("<td align=center>");
                builder.Append(DateTime.Parse(set.Tables[0].Rows[num9]["updatetime"].ToString().Trim()).ToString("yyyy-MM-dd HH:mm:ss").ToUpper().Replace(" ", "<br>"));
                builder.Append("</td><td align=center nowrap><table border=0 cellpadding=1 cellspacing=0 width=100%><tr><td><font color=red>");
                builder.Append(set.Tables[0].Rows[num9]["abc"].ToString());
                builder.Append("</font>&nbsp;");
                builder.Append(set.Tables[0].Rows[num9]["username"].ToString());
                builder.Append("&nbsp;</td><td nowrap><font color=red>");
                builder.Append(Convert.ToDouble(set.Tables[0].Rows[num9]["hsuser_w"]).ToString("F2"));
                builder.Append("</font>/<font color=red>");
                builder.Append(Convert.ToDouble(set.Tables[0].Rows[num9]["hsuser_l"]).ToString("F2"));
                builder.Append("</font></td></tr></table></td>");
                builder.Append("<td align=center><font color=blue>");
                builder.Append(tzTypeName);
                builder.Append("</td><td>");
                builder.Append(set.Tables[0].Rows[num9]["content"].ToString());
                builder.Append("</td><td>");
                builder.Append(MyFunc.NumBerFormat(set.Tables[0].Rows[num9]["tzmoney"].ToString()));
                builder.Append("</td><td>");
                builder.Append(Convert.ToDouble(set.Tables[0].Rows[num9]["csdls"]).ToString("F1"));
                builder.Append("</td><td>");
                builder.Append(MyFunc.NumBerFormat(set.Tables[0].Rows[num9]["csres"].ToString()));
                builder.Append("</td><td>");
                builder.Append(MyFunc.NumBerFormat(set.Tables[0].Rows[num9]["result"].ToString()));
                builder.Append("</td></tr>\n");
                num++;
                num2 += double.Parse(set.Tables[0].Rows[num9]["tzmoney"].ToString());
                num3 += double.Parse(set.Tables[0].Rows[num9]["csres"].ToString());
                num4 += double.Parse(set.Tables[0].Rows[num9]["result"].ToString());
                num9++;
            }
            if (set.Tables[0].Rows.Count == 0)
            {
                builder.Append("<tr bgcolor=#ffffff><td align=center colspan=9 height=30><marquee align=middle behavior=alternate width=200><font color=red size=2><b>没有资料</b></font></marquee></td></tr>\n");
            }
            else
            {
                builder.Append("<tr bgcolor=#dfefff height=22 class=reportTotalnum><td colspan=4 align=right>");
                builder.Append(num.ToString());
                builder.Append("</td><td align=right>");
                builder.Append(num2.ToString());
                builder.Append("</td><td align=right>&nbsp;");
                builder.Append("</td><td align=right>");
                builder.Append(num3.ToString());
                builder.Append("</td><td align=right >");
                builder.Append(num4.ToString());
                builder.Append("</td></tr>");
            }
            builder.Append("</table>\n");
            set.Clear();
            base2.CloseConnect();
            base2.Dispose();
            this.showContent.Rows[0].Cells[0].InnerHtml = builder.ToString();
            this.setselectpageproc(pagesize, totalrecord, curpage);
        }
 public static void SpinUntil(MyFunc<bool> condition)
 {
     ServerSpinWait sw = new ServerSpinWait ();
     while (!condition ())
         sw.SpinOnce ();
 }
Пример #45
0
 public void QueueAction <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R>(MyFunc <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R> func, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16)
 {
     lock (LockObj)
     {
         queue.Enqueue(() => { func(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16); });
     }
 }
Пример #46
0
 static void WriteResult <T>(MyFunc <T> function)
 {
     Console.WriteLine(function());
 }
Пример #47
0
 public MYTransform()
     : base(typeof(Transform), "Transform")
 {
     function = new MyFunc();
 }