09 2013 档案
摘要://program.cs static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { bool ret = false; System.Threading.Mutex running = new System.Threading.Mutex(true, Application.ProductName, out ret); if (ret) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefa..
阅读全文
摘要://以下代码添加到任一窗口下即可 private int 旋转角度 = 0; private int 边长 = 10; protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); DrawSensor(e.Graphics, new Point(200, 200), 旋转角度, 边长); } /// /// 应力传感器代码,其他类型自己修改字符串值 /// /// /// 三角形顶点坐标 /// 旋转角度(顺时针正,逆时针负) /// 边长 private void DrawSensor(Graphics g,...
阅读全文