• 大小: 0.05M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 委托  基础  C#  

资源简介


资源截图

代码片段和文件信息

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

namespace DelegateEvent
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            Form2 f = new Form2();
            f.ShowDialog();
        }

        private void Form1_Load(object sender EventArgs e)
        {
            Form2.SendMessageEvent += Form2_SendMessageEvent;
        }

        void Form2_SendMessageEvent()
        {
            this.textBox1.Text = this.textBox1.Text +“收消息成功“;
   

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

     文件        187  2018-03-22 16:37  DelegateEvent\DelegateEvent\App.config

     文件      10240  2019-03-19 09:17  DelegateEvent\DelegateEvent\bin\Debug\DelegateEvent.exe

     文件        187  2018-03-22 16:37  DelegateEvent\DelegateEvent\bin\Debug\DelegateEvent.exe.config

     文件      28160  2019-03-19 09:17  DelegateEvent\DelegateEvent\bin\Debug\DelegateEvent.pdb

     文件      22984  2019-03-19 09:17  DelegateEvent\DelegateEvent\bin\Debug\DelegateEvent.vshost.exe

     文件        187  2018-03-22 16:37  DelegateEvent\DelegateEvent\bin\Debug\DelegateEvent.vshost.exe.config

     文件        490  2012-06-06 02:06  DelegateEvent\DelegateEvent\bin\Debug\DelegateEvent.vshost.exe.manifest

     文件       4109  2018-03-22 16:44  DelegateEvent\DelegateEvent\DelegateEvent.csproj

     文件        831  2018-03-22 16:45  DelegateEvent\DelegateEvent\Form1.cs

     文件       3099  2018-03-22 16:44  DelegateEvent\DelegateEvent\Form1.Designer.cs

     文件       5817  2018-03-22 16:44  DelegateEvent\DelegateEvent\Form1.resx

     文件        635  2018-03-22 16:45  DelegateEvent\DelegateEvent\Form2.cs

     文件       2033  2018-03-22 16:41  DelegateEvent\DelegateEvent\Form2.Designer.cs

     文件       5817  2018-03-22 16:41  DelegateEvent\DelegateEvent\Form2.resx

     文件        847  2019-03-19 09:17  DelegateEvent\DelegateEvent\obj\Debug\DelegateEvent.csproj.FileListAbsolute.txt

     文件       1033  2018-03-22 16:44  DelegateEvent\DelegateEvent\obj\Debug\DelegateEvent.csproj.GenerateResource.Cache

     文件       2209  2019-03-19 09:17  DelegateEvent\DelegateEvent\obj\Debug\DelegateEvent.csprojResolveAssemblyReference.cache

     文件      10240  2019-03-19 09:17  DelegateEvent\DelegateEvent\obj\Debug\DelegateEvent.exe

     文件        180  2018-03-22 16:44  DelegateEvent\DelegateEvent\obj\Debug\DelegateEvent.Form1.resources

     文件        180  2018-03-22 16:44  DelegateEvent\DelegateEvent\obj\Debug\DelegateEvent.Form2.resources

     文件      28160  2019-03-19 09:17  DelegateEvent\DelegateEvent\obj\Debug\DelegateEvent.pdb

     文件        180  2018-03-22 16:44  DelegateEvent\DelegateEvent\obj\Debug\DelegateEvent.Properties.Resources.resources

     文件       1451  2019-03-19 09:16  DelegateEvent\DelegateEvent\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6979  2018-03-22 16:38  DelegateEvent\DelegateEvent\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2018-03-22 16:37  DelegateEvent\DelegateEvent\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2018-03-22 16:37  DelegateEvent\DelegateEvent\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2018-03-22 16:37  DelegateEvent\DelegateEvent\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件        525  2018-03-22 16:37  DelegateEvent\DelegateEvent\Program.cs

     文件       1364  2018-03-22 16:37  DelegateEvent\DelegateEvent\Properties\AssemblyInfo.cs

     文件       2878  2018-03-22 16:37  DelegateEvent\DelegateEvent\Properties\Resources.Designer.cs

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

评论

共有 条评论