• 大小: 0.19M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-19
  • 语言: 其他
  • 标签: 其他  

资源简介

rws43v.rar

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;

namespace ThermometerLib
{
    public partial class ThermometerControl : UserControl
    {
        /// 
        /// 初始化控件
        /// 预设绘图方式:双缓冲、支持透明背景色、自定义绘制
        /// 

        public ThermometerControl()
        {
            Setstyle(Controlstyles.AllPaintingInWmPaint true);
            Setstyle(Controlstyles.OptimizedDoubleBuffer true);
            Setstyle(Controlstyles.ResizeRedraw true);
            Setstyle(Controlstyles.Selectable true);
            Setstyle(Controlstyles.SupportsTransparentBackColor true);
            Setstyle(Controlstyles.UserPaint true);

            InitializeComponent();
        }

        // 名称
        // private string title = ““;
        // [CategoryAttribute(“标题“) Description(“控件标题“)]
        // public string title
        // {
        //    set { title = value; }
        //    get { return title; }
        //  }

        // 标题的字体
        private Font titleFont = new Font(“宋体“ 12);
        [CategoryAttribute(“标题“) Description(“标题字体“)]
        public Font titleFont
        {
            set { titleFont = value; }
            get { return titleFont; }
        }

        // 标题的颜色
        private Color titleColor = Color.Black;
        [CategoryAttribute(“标题“) Description(“标题颜色“)]
        public Color titleColor
        {
            set { titleColor = value; }
            get { return titleColor; }
        }

        // 温度
        private float temperature = 0;
        [CategoryAttribute(“温度“) Description(“当前温度“)]
        public float Temperature
        {
            set { temperature = value; }
            get { return temperature; }
        }

        // 理论温度
        private float theoretictemperature = 0;
        [CategoryAttribute(“温度“) Description(“当前温度“)]
        public float Theoretictemperature
        {
            set { theoretictemperature = value; }
            get { return theoretictemperature; }
        }

        // 最高温度
        private float highTemperature = 1000;
        [CategoryAttribute(“温度“) Description(“最高温度“)]
        public float HighTemperature
        {
            set { highTemperature = value; }
            get { return highTemperature; }
        }

        // 最低温度
        private float lowTemperature = 0;
        [CategoryAttribute(“温度“) Description(“最低温度“)]
        public float LowTemperature
        {
            set { lowTemperature = value; }
            get { return lowTemperature; }
        }

        // 当前温度数值的字体
        private Font tempFont = new Font(“宋体“ 6);
        [CategoryAttribute(“温度“) Description(“当前温度数值的字体“)]
        public Font TempFont
        {
            set { tempFont = value; }
            get { return tempFont; 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      23040  2014-04-30 17:18  温度计\ThermometerLib\bin\Debug\ThermometerLib.dll

     文件      40448  2014-04-30 17:18  温度计\ThermometerLib\bin\Debug\ThermometerLib.pdb

     文件      22016  2014-04-29 09:28  温度计\ThermometerLib\bin\Release\ThermometerLib.dll

     文件      34304  2014-04-29 09:28  温度计\ThermometerLib\bin\Release\ThermometerLib.pdb

     文件       5136  2014-04-29 09:28  温度计\ThermometerLib\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6430  2014-04-30 17:18  温度计\ThermometerLib\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1388  2014-04-29 09:30  温度计\ThermometerLib\obj\Debug\GenerateResource.read.1.tlog

     文件       1154  2014-04-29 09:30  温度计\ThermometerLib\obj\Debug\GenerateResource.write.1.tlog

     文件      15442  2014-04-30 17:18  温度计\ThermometerLib\obj\Debug\ResolveAssemblyReference.cache

     文件       4608  2014-04-29 09:28  温度计\ThermometerLib\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件       2905  2014-04-29 09:30  温度计\ThermometerLib\obj\Debug\ThermometerLib.csproj.FileListAbsolute.txt

     文件      23040  2014-04-30 17:18  温度计\ThermometerLib\obj\Debug\ThermometerLib.dll

     文件      40448  2014-04-30 17:18  温度计\ThermometerLib\obj\Debug\ThermometerLib.pdb

     文件       2413  2014-04-29 09:30  温度计\ThermometerLib\obj\Debug\ThermometerLib.Properties.Resources.resources

     文件        180  2014-04-29 09:30  温度计\ThermometerLib\obj\Debug\ThermometerLib.ThermometerControl.resources

     文件       4440  2014-04-29 09:28  温度计\ThermometerLib\obj\Release\DesignTimeResolveAssemblyReferences.cache

     文件       6372  2014-04-29 09:28  温度计\ThermometerLib\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache

     文件        506  2014-04-29 09:28  温度计\ThermometerLib\obj\Release\GenerateResource.read.1.tlog

     文件        530  2014-04-29 09:28  温度计\ThermometerLib\obj\Release\GenerateResource.write.1.tlog

     文件      12419  2014-04-29 09:28  温度计\ThermometerLib\obj\Release\ResolveAssemblyReference.cache

     文件       4608  2014-04-29 09:28  温度计\ThermometerLib\obj\Release\TempPE\Properties.Resources.Designer.cs.dll

     文件       3123  2014-04-29 09:28  温度计\ThermometerLib\obj\Release\ThermometerLib.csproj.FileListAbsolute.txt

     文件      22016  2014-04-29 09:28  温度计\ThermometerLib\obj\Release\ThermometerLib.dll

     文件      34304  2014-04-29 09:28  温度计\ThermometerLib\obj\Release\ThermometerLib.pdb

     文件       2413  2014-04-29 09:28  温度计\ThermometerLib\obj\Release\ThermometerLib.Properties.Resources.resources

     文件        180  2014-04-29 09:28  温度计\ThermometerLib\obj\Release\ThermometerLib.ThermometerControl.resources

     文件       1378  2014-04-29 09:28  温度计\ThermometerLib\Properties\AssemblyInfo.cs

     文件       3365  2014-04-29 09:28  温度计\ThermometerLib\Properties\Resources.Designer.cs

     文件       6471  2014-04-29 09:28  温度计\ThermometerLib\Properties\Resources.resx

     文件       1064  2014-04-29 09:28  温度计\ThermometerLib\Resources\1.jpg

............此处省略79个文件信息

评论

共有 条评论