• 大小: 235KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-24
  • 语言: C#
  • 标签: C#  图形设计  源码  

资源简介

用VS2010 C#编写的基本示波器窗口源码, 经典,已经经过测试可用;

资源截图

代码片段和文件信息

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



namespace Test
{
    public partial class FormTest : Form
    {
        public FormTest()
        {
            InitializeComponent();
            f_saveReadFirst(false);
            f_restyle();
        }
        private Color[] m_colors;
        private float m_fstyle;
        private int[] m_istyle;
        /// 
        /// 获取初始的波形显示控件的样式或设置为初始样式
        /// 

        /// 获取ture | 设置false
        private void f_saveReadFirst(bool isRead)
        {
            if (!isRead)
            {
                m_colors = new Color[18];
                m_istyle = new int[2];
                m_istyle[0] = zGraphTest.m_titleSize;
                m_fstyle = zGraphTest.m_titlePosition;
                m_colors[0] = zGraphTest.m_titleColor;
                m_colors[1] = zGraphTest.m_titleBorderColor;
                m_colors[2] = zGraphTest.m_backColorL;
                m_colors[3] = zGraphTest.m_backColorH;
                m_colors[4] = zGraphTest.m_coordinateLineColor;
                m_colors[5] = zGraphTest.m_coordinateStringColor;
                m_colors[6] = zGraphTest.m_coordinateStringtitleColor;
                m_istyle[1] = zGraphTest.m_iLineShowColorAlpha;
                m_colors[7] = zGraphTest.m_iLineShowColor;
                m_colors[8] = zGraphTest.m_GraphBackColor;
                m_colors[9] = zGraphTest.m_ControlItemBackColor;
                m_colors[10] = zGraphTest.m_ControlButtonBackColor;
                m_colors[11] = zGraphTest.m_ControlButtonForeColorL;
                m_colors[12] = zGraphTest.m_ControlButtonForeColorH;
                m_colors[13] = zGraphTest.m_DirectionBackColor;
                m_colors[14] = zGraphTest.m_DirectionForeColor;
                m_colors[15] = zGraphTest.m_BigXYBackColor;
                m_colors[16] = zGraphTest.m_BigXYButtonBackColor;
                m_colors[17] = zGraphTest.m_BigXYButtonForeColor;      
            }
            else
            {
                //样式
                textBox标题字体大小.Text = m_istyle[0].ToString();
                zGraphTest.m_titleSize = m_istyle[0];
                textBox标题位置.Text = m_fstyle.ToString();
                zGraphTest.m_titlePosition = m_fstyle;
                zGraphTest.m_titleColor=button标题颜色.BackColor = m_colors[0];
                zGraphTest.m_titleBorderColor=button标题描边颜色.BackColor = m_colors[1];
                zGraphTest.m_backColorL=button背景色渐进起始颜色.BackColor = m_colors[2];
                zGraphTest.m_backColorH=button背景色渐进终止颜色.BackColor = m_colors[3];
                zGraphTest.m_coordinateLineColor=button坐标线颜色.BackColor = m_colors[4];
                zGraphTest.m_coordinateStringColor=butto

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

     文件      53248  2010-05-18 09:43  ZGraph1_示波器窗口\ZGraph\bin\Debug\ZGraph.dll

     文件      85504  2010-05-18 09:43  ZGraph1_示波器窗口\ZGraph\bin\Debug\ZGraph.pdb

     文件      53248  2010-05-11 14:04  ZGraph1_示波器窗口\ZGraph\bin\Release\ZGraph.dll

     文件      15882  2010-05-11 14:04  ZGraph1_示波器窗口\ZGraph\bin\Release\ZGraph.xml

     文件        770  2010-05-18 09:18  ZGraph1_示波器窗口\ZGraph\obj\Debug\ZGraph.csproj.GenerateResource.Cache

     文件      53248  2010-05-18 09:43  ZGraph1_示波器窗口\ZGraph\obj\Debug\ZGraph.dll

     文件      85504  2010-05-18 09:43  ZGraph1_示波器窗口\ZGraph\obj\Debug\ZGraph.pdb

     文件        180  2010-05-18 09:18  ZGraph1_示波器窗口\ZGraph\obj\Debug\ZhengJuyin.UI.ZGraph.resources

     文件        675  2010-05-18 09:45  ZGraph1_示波器窗口\ZGraph\obj\ZGraph.csproj.FileListAbsolute.txt

     文件       1478  2010-05-11 13:45  ZGraph1_示波器窗口\ZGraph\Properties\AssemblyInfo.cs

     文件       3341  2010-05-30 09:07  ZGraph1_示波器窗口\ZGraph\ZGraph.csproj

     文件      54284  2010-05-18 09:43  ZGraph1_示波器窗口\ZGraph\ZGraph_Drawing.cs

     文件      11317  2010-05-18 09:43  ZGraph1_示波器窗口\ZGraph\ZGraph_FuncPrivate.cs

     文件       6190  2010-05-18 09:42  ZGraph1_示波器窗口\ZGraph\ZGraph_FuncPublic.cs

     文件      24412  2010-05-18 09:43  ZGraph1_示波器窗口\ZGraph\ZGraph_Menu.cs

     文件       9448  2010-05-18 09:43  ZGraph1_示波器窗口\ZGraph\ZGraph_ParamPrivate.cs

     文件       9782  2010-05-18 09:43  ZGraph1_示波器窗口\ZGraph\ZGraph_ParamPublic.cs

     文件       3522  2010-05-30 09:08  ZGraph1_示波器窗口\ZGraph\ZGraph.cs

     文件      33504  2010-05-30 09:08  ZGraph1_示波器窗口\ZGraph\ZGraph.designer.cs

     文件       6016  2010-05-30 09:08  ZGraph1_示波器窗口\ZGraph\ZGraph.resx

     文件       4945  2007-07-18 09:38  ZGraph1_示波器窗口\from.gif

     文件       1374  2010-05-30 09:07  ZGraph1_示波器窗口\ZGraph.sln

    ..A..H.     19456  2010-05-30 09:08  ZGraph1_示波器窗口\ZGraph.suo

     文件         32  2010-05-18 09:47  ZGraph1_示波器窗口\说明.txt

     文件        125  2007-03-27 14:33  ZGraph1_示波器窗口\最新Asp.Net源码下载.url

     文件      57344  2010-05-18 09:43  ZGraph1_示波器窗口\Test\bin\Debug\Test.exe

     文件      65024  2010-05-18 09:43  ZGraph1_示波器窗口\Test\bin\Debug\Test.pdb

     文件      14328  2010-05-30 09:07  ZGraph1_示波器窗口\Test\bin\Debug\Test.vshost.exe

     文件      53248  2010-05-18 09:43  ZGraph1_示波器窗口\Test\bin\Debug\ZGraph.dll

     文件      85504  2010-05-18 09:43  ZGraph1_示波器窗口\Test\bin\Debug\ZGraph.pdb

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

评论

共有 条评论