C# Action- 검토

C# 에는 독특한것이 있다, Action 이란 것인데, 이런 기능의 필요성동 조금 의문이지만 특이하다,
나의 경우는 Extension기능을 선호 하기에 이렇게 사용할 경우는 없을 것 같지만 , 한번쯤 눈여겨 보고 가야 할 것 같아
종료버튼 눌렀을 때 메시지 박스가 뜨면,1000ms(1s)후에 자동 종료되는 형태이다.다른 방법도 있지만 Action으로 사용 하는 방법

private void MessageBoxFormClosing(Form fm)
{
    if (fm.InvokeRequired)
    {
        Action
closeform = new Action
(MessageBoxFormClosing); this.Invoke(closeform, fm); } else { if (fm != null) fm.Close(); } } private void button1_Click(object sender, EventArgs e) { Form msgfm = new Form(); Action clse = new Action(() = > { while (true) { System.Threading.Thread.Sleep(1000); break; } MessageBoxFormClosing(msgfm); }); clse.BeginInvoke(ir = > clse.EndInvoke(ir), null); MessageBox.Show(msgfm, “닫혀~”); }

Comments (78)

  1. Pingback: elang qq

  2. Pingback: call of duty modern warfare cheats free

  3. 응답

    Hi there! I could have sworn I’ve been to your blog before but after browsing through a few of the
    posts I realized it’s new to me. Regardless, I’m certainly delighted I found it and I’ll be book-marking it and checking back frequently!

  4. 응답

    Hello everybody, here every one is sharing these
    kinds of experience, therefore it’s good to read this website,
    and I used to visit this blog all the time.

  5. 응답

    Simply want to say your article is as astounding. The clearness to your post is simply nice and that i can assume you are
    an expert in this subject. Well with your permission let me to seize your feed to stay updated with coming near near post.
    Thank you one million and please carry on the rewarding
    work.

  6. 응답

    Thank you a bunch for sharing this with all people you
    really recognise what you are talking about! Bookmarked.
    Kindly additionally discuss with my site =).
    We may have a hyperlink alternate agreement between us

  7. 응답

    Its like you learn my thoughts! You seem to understand so much approximately this, like you wrote the book in it
    or something. I think that you simply can do with a few % to pressure the message house a little bit, however other than that, that is wonderful blog.
    A great read. I will definitely be back.

  8. 응답

    Hello, i read your blog occasionally and i own a similar one and i was just curious if you get
    a lot of spam responses? If so how do you prevent
    it, any plugin or anything you can advise?
    I get so much lately it’s driving me mad so any assistance is
    very much appreciated.

    Here is my blog post idn play deposit pulsa

  9. Pingback: where to buy red wigglers

  10. 응답

    Hey just wanted to give you a brief heads up and let you
    know a few of the pictures aren’t loading properly. I’m not sure why
    but I think its a linking issue. I’ve tried it in two different internet browsers and both show
    the same results.

    Feel free to visit my webpage poker idn pulsa

  11. Pingback: mơ thấy chim bồ câu

  12. Pingback: nằm mơ thấy cãi nhau danh so ma

  13. Pingback: buffstreams

  14. Pingback: mơ thấy voi

  15. Pingback: mơ thấy sếp cũ

  16. Pingback: những cách khiến chàng yêu mình hơn

  17. Pingback: site url

  18. Pingback: https://jacksontnpainters.com/

  19. Pingback: dewaqq

  20. Pingback: digital transformation

  21. Pingback: fish spatula yourfishguide.com

  22. Pingback: facebook sign in

  23. 응답

    Wonderful blog! Do you have any suggestions for
    aspiring writers? I’m planning to start my own blog soon but
    I’m a little lost on everything. Would you advise starting with a free platform like WordPress or
    go for a paid option? There are so many choices out
    there that I’m totally confused .. Any ideas? Kudos!

    My blog post: slotpulsa303.xyz

  24. 응답

    Hi there would you mind stating which blog platform you’re using?
    I’m planning to start my own blog in the near future but I’m
    having a difficult time selecting between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design and style seems different then most blogs and I’m looking for something completely
    unique. P.S Sorry for getting off-topic but I had to ask!

    Feel free to surf to my web blog: link poker online

  25. Pingback: http://www.laguqqid.club/

  26. 응답

    Very good site you have here but I was wondering if you
    knew of any discussion boards that cover the same topics talked about here?
    I’d really like to be a part of group where
    I can get feedback from other knowledgeable people that share the
    same interest. If you have any suggestions, please let me know.
    Thank you!

    my blog daftar judi online

  27. 응답

    Wonderful beat ! I wish to apprentice while you amend your web site, how could i subscribe for a blog site?
    The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright clear concept

    Also visit my web page; slot via pulsa

  28. Pingback: คาสิโน

  29. 응답

    Road/City Driving is after you bicycle via city places, ride on ledges as well as other person-made obstructions. Some riders execute tricks along with stalls and grinds. Hybrid bikes, at times termed city bikes, are typically used for Road/urban riding. Hybrid bikes can be a cross amongst a mountain bicycle as well as a highway bicycle. Most have entrance suspension with extensive comfy seats and upright handlebars.

  30. 응답

    I know this if off topic but I’m looking into starting my own blog
    and was curious what all is needed to get setup? I’m assuming having a blog like yours would cost a
    pretty penny? I’m not very internet savvy so I’m not 100% positive.

    Any recommendations or advice would be greatly appreciated.

    Appreciate it

    Here is my blog post – slotdana.net

  31. 응답

    Hmm it appears like your site ate my first comment (it was extremely
    long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying
    your blog. I as well am an aspiring blog blogger but I’m still new to everything.
    Do you have any points for first-time blog writers?
    I’d certainly appreciate it.

  32. 응답

    Hey there! I just wanted to ask if you ever have any
    issues with hackers? My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no back up.
    Do you have any methods to protect against hackers?

  33. 응답

    Just want to say your article is as astounding. The clearness in your put up is just spectacular and that i could assume you are a professional on this subject.

    Fine together with your permission let me to snatch your RSS feed to stay
    updated with forthcoming post. Thanks a million and
    please continue the enjoyable work.

  34. 응답

    I am in fact grateful to the holder of this web site who has shared this wonderful piece of writing at here.

  35. 응답

    I’m not that much of a online reader to be honest but your blogs really
    nice, keep it up! I’ll go ahead and bookmark your site to
    come back later. Cheers

  36. 응답

    I was curious if you ever thought of changing the page layout of your
    website? Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people could
    connect with it better. Youve got an awful lot of text for only having one or 2 images.
    Maybe you could space it out better?

  37. 응답

    I think this is one of the most vital information for me.

    And i am glad reading your article. But should remark
    on few general things, The site style is perfect, the articles is really nice : D.
    Good job, cheers

  38. 응답

    Hello! I could have sworn I’ve been to this web site before but after looking at many of the posts I realized
    it’s new to me. Nonetheless, I’m definitely pleased I came across it and I’ll
    be book-marking it and checking back regularly! quest bars http://bitly.com/3jZgEA2 quest bars

  39. 응답

    Howdy! This is my first visit to your blog!
    We are a collection of volunteers and starting a new initiative in a community
    in the same niche. Your blog provided us valuable information to work on. You have
    done a marvellous job! scoliosis surgery https://0401mm.tumblr.com/ scoliosis surgery

  40. 응답

    You actually make it appear really easy together with your presentation however I find this topic to be actually one
    thing which I feel I might never understand.
    It sort of feels too complicated and very vast for me. I am having a look forward in your subsequent publish, I’ll attempt to get the cling
    of it! scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis
    surgery

  41. 응답

    I think that is one of the most vital information for me.
    And i am glad studying your article. However wanna remark
    on some normal things, The site taste is perfect, the articles is actually nice : D.
    Excellent activity, cheers ps4 games https://bit.ly/3z5HwTp ps4

Leave a comment

이메일 주소는 공개되지 않습니다.