[C #] how to call for a story Button.Click events

How to call for a story Button.Click events


I. Introduction

Inspired by Xiao Zhu and BillChung, and wanted to write a story, so that we know how to call Button.Click event, and the story is good or bad, to judge by the theater Keguan, if that's not good, please do not call almost everywhere, because I'm just a rookie to write a program, not a storyteller

Second, the story began

One day, a man called the Little Europe, saw the road with trolley (button1_Click), this car looks long

Private void the button1_Click. 1 (SENDER Object, EventArgs E)
2 {...
. 3 MessageBox.Show ( "I'm good car to open I");
4}

Wow! Is a good car, really want to secretly open look, so walked over to the car and found to open this car, you need two keys (object sender, EventArgs e)

So try some small European methods, secretly I want to drive

Method One: Do not insert the key, directly open to see, the results can not be opened ....

Method Two: Take a key (new EventArgs ()) open look, the results can not be opened ...

Method three: Insert two keys, but also legendary with master key (null, null), result ... Oh able to open

Method four, take a universal key, a dedicated key (null, new EventArgs ()), the result ... Oh able to open

Method five, the car's official website MSDN look around there a way to open, see a Button.PerformClick  voice method, called a moment to open Oh, Oh able to open the results ...

Third, the story tell us?

1. There are many car can open up the way

2. drove up, opened the way on behalf of a problem

3. 假如想不到怎么开车子,记得上 MSDN 找找看

4. 当您使用车子需要读取专属钥匙上的芯片 (参数) 时,拿专属钥匙车子可以读取芯片上的数据,让您的可以顺利开车,但如果使用万用钥匙 ( null ),也许车门可以打开,但车子发不起来

故事说完了,下台一鞠躬

原文:大专栏  [C#]一段如何调用Button.Click事件的故事


Guess you like

Origin www.cnblogs.com/petewell/p/11457721.html