Hidistro.UI.Common.Controls/UserStatisticeChart.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.Common.Controls
{
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Web;
public class UserStatisticeChart : IHttpHandler
{
public MemoryStream ShowChart_MS = new MemoryStream();
public int FunMaxNum(string[] num)
{
decimal num2 = Convert.ToDecimal(num[0]);
for (int i = 1; i < num.Length; i++)
{
if (Convert.ToDecimal(num[i]) > num2)
{
num2 = Convert.ToDecimal(num[i]);
}
}
return Convert.ToInt32(num2);
}
public void ProcessRequest(HttpContext context)
{
try
{
string chartType = string.Empty;
string xValues = string.Empty;
string yValues = string.Empty;
int? width = null;
if ((!string.IsNullOrEmpty(context.Request.Params["ChartType"]) && !string.IsNullOrEmpty(context.Request.Params["XValues"])) && !string.IsNullOrEmpty(context.Request.Params["YValues"]))
{
chartType = context.Request.QueryString["ChartType"];
xValues = context.Request.QueryString["XValues"];
yValues = context.Request.QueryString["YValues"];
}
if (!string.IsNullOrEmpty(context.Request.Params["Width"]))
{
width = new int?(int.Parse(context.Request.Params["Width"]));
}
this.ShowChar(chartType, xValues, yValues, width);
context.Response.ClearContent();
context.Response.ContentType = "image/png";
context.Response.BinaryWrite(this.ShowChart_MS.ToArray());
}
catch
{
}
}
public void ShowChar(string ChartType, string XValues, string YValues, int? width)
{
if (ChartType != null)
{
bool flag;
string str3 = ChartType;
string str = XValues;
后面还有 65 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
