• 大小: 1.06MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-28
  • 语言: 其他
  • 标签: 111  

资源简介

实例,不是例程,第一次上传,好多人不喜欢分享 怕给人学了,我就不开心

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading.Tasks;
using csDmc1380;

namespace project
{
    public partial class Form1 : Form
    {
        public Window1 w1;
        public window2 w2;
        public window3 w3;
        public window4 w4;
        public window5 w5;
        public window6 w6;
        public window7 w7;
        public window8 w8;
        public window9 w9;
       
        public Form1()
        {
            InitializeComponent();
        }
        
        
        private void Form1_Load(object sender EventArgs e)
        {
            w1 = new Window1();
            w2 = new window2();
            w3 = new window3();
            w4 = new window4();
            w5 = new window5();
            w6 = new window6();
            w7 = new window7();
            w8 = new window8();
            w9 = new window9();

           
            Dmc1380.d1000_board_init();
            
            var setOutput = Task.Factory.StartNew(()=>
                {
                Dmc1380.d1000_out_bit(1 1);
                Dmc1380.d1000_out_bit(2 1);
                Dmc1380.d1000_out_bit(3 1);
                Dmc1380.d1000_out_bit(4 1);
                Dmc1380.d1000_out_bit(5 1);
                Dmc1380.d1000_out_bit(6 1);
                });        
        }




        private void btnEnterHim_Click(object sender EventArgs e)
        {
            //显示窗体1控件
            w1.Show();
            //清除之前加载的控件
            groupWindows.Controls.Clear();
            //加载窗体1控件
            groupWindows.Controls.Add(w1);
        }

        private void btnAutoHim_Click_1(object sender EventArgs e)
        {
            //显示窗体2控件
            w1.Show();
            //清除之前加载的控件
            groupWindows.Controls.Clear();
            //加载窗体2控件
            groupWindows.Controls.Add(w1);
        }

        private void btnManualHim_Click(object sender EventArgs e)
        {
            //显示窗体3控件
            w2.Show();
            //清除之前加载的控件
            groupWindows.Controls.Clear();
            //加载窗体3控件
            groupWindows.Controls.Add(w2);
            
        }

        private void btnParameter1_Click(object sender EventArgs e)
        {
            //显示窗体4控件
            w3.Show();
            //清除之前加载的控件
            groupWindows.Controls.Clear();
            //加载窗体4控件
            groupWindows.Controls.Add(w3);
        }

        private void btnParameter2_Click(object sender EventArgs e)
        {
            //显示窗体5控件
            w4.Show();
            //清除之前加载的控件
            groupWindows.Controls.Clear();
            //加载窗体5控件
            groupWindows.Controls.Add(w4);
        }

        private void btnIO1Him_Click_1(object sender EventArgs e)
        {
            //

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

     文件        134  2018-06-14 23:53  3轴程序\project\.vs\project\DesignTimeBuild\.dtbcache

    ..A..H.     93184  2018-06-07 10:43  3轴程序\project\.vs\project\v14\.suo

    ..A..H.    100864  2018-06-14 23:54  3轴程序\project\.vs\project\v15\.suo

     文件          0  2018-06-14 23:52  3轴程序\project\.vs\project\v15\Server\sqlite3\db.lock

     文件       4096  2018-06-14 23:52  3轴程序\project\.vs\project\v15\Server\sqlite3\storage.ide

     文件      32768  2018-06-14 23:52  3轴程序\project\.vs\project\v15\Server\sqlite3\storage.ide-shm

     文件     721032  2018-06-14 23:52  3轴程序\project\.vs\project\v15\Server\sqlite3\storage.ide-wal

     文件     121344  2013-10-07 00:00  3轴程序\project\project\bin\Debug\Dmc1380.dll

     文件     308224  2018-06-06 14:30  3轴程序\project\project\bin\Debug\project.exe

     文件     136704  2018-06-06 14:30  3轴程序\project\project\bin\Debug\project.pdb

     文件      22688  2018-06-07 10:42  3轴程序\project\project\bin\Debug\project.vshost.exe

     文件        490  2010-03-17 22:39  3轴程序\project\project\bin\Debug\project.vshost.exe.manifest

     文件       6707  2018-03-13 18:33  3轴程序\project\project\Dmc\Dmc1380.cs

     文件        291  2018-05-26 09:39  3轴程序\project\project\Dmc\MyDmc1380.cs

     文件       4173  2018-06-01 16:23  3轴程序\project\project\Form1.cs

     文件      10446  2018-05-25 09:53  3轴程序\project\project\Form1.Designer.cs

     文件       5817  2018-06-01 16:23  3轴程序\project\project\Form1.resx

     文件        185  2018-05-20 11:15  3轴程序\project\project\Globalvariables.cs

     文件      20500  2018-05-31 00:26  3轴程序\project\project\ground\window1.cs

     文件      12947  2018-05-30 23:37  3轴程序\project\project\ground\window1.Designer.cs

     文件       6011  2018-05-30 23:37  3轴程序\project\project\ground\window1.resx

     文件       9459  2018-05-31 11:58  3轴程序\project\project\ground\window2.cs

     文件      48768  2018-05-31 11:53  3轴程序\project\project\ground\window2.Designer.cs

     文件       5817  2018-05-31 11:53  3轴程序\project\project\ground\window2.resx

     文件        388  2018-05-31 11:53  3轴程序\project\project\ground\window3.cs

     文件      51990  2018-05-31 11:53  3轴程序\project\project\ground\window3.Designer.cs

     文件       5817  2018-05-31 11:36  3轴程序\project\project\ground\window3.resx

     文件       3427  2018-05-31 11:54  3轴程序\project\project\ground\window4.cs

     文件      19249  2018-05-31 11:54  3轴程序\project\project\ground\window4.Designer.cs

     文件     299055  2018-05-31 11:54  3轴程序\project\project\ground\window4.resx

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

评论

共有 条评论