// Change the background color of the days in the month // to yellow. if (!e.Day.IsOtherMonth)//&& !e.Day.IsWeekend) ...{ // e.Cell.BackColor = System.Drawing.Color.Yellow; e.Cell.ForeColor = System.Drawing.Color.OrangeRed; } e.Cell.Font.Size =12;
// Add custom text to cell in the Calendar control. // if (e.Day.Date.Day == 18) // e.Cell.Controls.Add(new LiteralControl("<br>Holiday")); string ye = e.Day.Date.Year.ToString(); string mo = e.Day.Date.Month.ToString(); string da = e.Day.Date.Day.ToString(); e.Cell.Controls.Add(new LiteralControl("<br>"+ lu.GetLunarCalendar(ye, mo, da) +""));
//计算天干,地支,月,日 nIsEnd =0; m =0; k =0; n =0; while (nIsEnd !=1) ...{ if (LunarData[m] <4095) k =11; else k =12; n = k; while (n >=0) ...{ //获取LunarData[m]的第n个二进制位的值 nBit = LunarData[m]; for (i =1; i < n +1; i++) nBit = nBit /2; nBit =
版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/gooluk/article/details/1570377
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。