2024年3月23日发(作者:)
using System;
using c;
using entModel;
using ;
using g;
using ;
using ;
using ;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
class bell
{
public delegate void RingDelegate();
public event RingDelegate RingEvent;
public void Ring()
{
if (RingEvent != null)
{
RingEvent();
}
}
}
class Student
{
public Student(bell bella)
{
ent += new legate(Run);
}
public void Run()
{
("老¤?师º|、¡é学¡ì生¦¨² 进?教¨¬室º¨°准Á?备À?上¦?课?");
}
}
private void button1_Click(object sender, EventArgs e)
{
bell bella = new bell();
Student m = new Student(bella);
();
}
}
}


发布评论