You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
773 B
37 lines
773 B
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 DelegateForm
|
|
{
|
|
public partial class Form1 : Form
|
|
{
|
|
static MyArea area;
|
|
|
|
public Form1()
|
|
{
|
|
InitializeComponent();
|
|
|
|
area = new MyArea();
|
|
area.MyClick += Area_Click;
|
|
area.MyClick += After_Click;
|
|
area.ShowDialog();
|
|
}
|
|
|
|
static void Area_Click(object sender)
|
|
{
|
|
area.Text = "MyArea 클릭!";
|
|
}
|
|
|
|
static void After_Click(object sender)
|
|
{
|
|
area.Text += " AfterClick 클릭!";
|
|
}
|
|
}
|
|
}
|
|
|